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.

llvm-svn: 185634
This commit is contained in:
Rafael Espindola 2013-07-04 14:25:25 +00:00
parent b86cb7d04b
commit 00db4c6f00
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
// RUN: %clang_cc1 -ast-print -o - %s | FileCheck %s
extern "C" void f(void);
// CHECK: extern "C" void f()
extern "C" int f(void);
// CHECK: extern "C" int f()
extern "C" void v;
// CHECK: extern "C" void v
extern "C" int v;
// CHECK: extern "C" int v