diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-04 14:25:25 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-04 14:25:25 +0000 |
| commit | 00db4c6f002289bc50338b00e444290baf8f0189 (patch) | |
| tree | 1e9e080061bc665878b0499cd8d118dfbb5d563a | |
| parent | b86cb7d04be194b37df4bfbb0e506736cf73de14 (diff) | |
| download | bcm5719-llvm-00db4c6f002289bc50338b00e444290baf8f0189.tar.gz bcm5719-llvm-00db4c6f002289bc50338b00e444290baf8f0189.zip | |
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
| -rw-r--r-- | clang/test/CXX/dcl.dcl/dcl.link/p7-2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CXX/dcl.dcl/dcl.link/p7-2.cpp b/clang/test/CXX/dcl.dcl/dcl.link/p7-2.cpp index 40f61c6445a..1e8f39338c2 100644 --- a/clang/test/CXX/dcl.dcl/dcl.link/p7-2.cpp +++ b/clang/test/CXX/dcl.dcl/dcl.link/p7-2.cpp @@ -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 |

