forked from OSchip/llvm-project
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:
parent
b86cb7d04b
commit
00db4c6f00
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue