// RUN: %clang_cc1 -ast-print -o - %s | FileCheck %s

extern "C" void f(void);
// CHECK: extern "C" void f()

extern "C" void v;
// CHECK: extern "C" void v

// RUN: %clang_cc1 -ast-print -o - %s | FileCheck %s

extern "C" int f(void);
// CHECK: extern "C" int f()

extern "C" int v;
// CHECK: extern "C" int v

Replace void with int to make this a valid C++ file.
Replace void with int to make this a valid C++ file.

The test was passing because clang would still print the ast before exiting
with an error. Since that didn't seem to be the intent of the test, I change
the test instead of adding 'not' to the command line.

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@185634 91177308-0d34-0410-b5e6-96231b3b80d8
