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

Rafael Espindola rafael.espindola at gmail.com
Thu Jul 4 07:25:25 PDT 2013


Author: rafael
Date: Thu Jul  4 09:25:25 2013
New Revision: 185634

URL: http://llvm.org/viewvc/llvm-project?rev=185634&view=rev
Log:
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.

Modified:
    cfe/trunk/test/CXX/dcl.dcl/dcl.link/p7-2.cpp

Modified: cfe/trunk/test/CXX/dcl.dcl/dcl.link/p7-2.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.dcl/dcl.link/p7-2.cpp?rev=185634&r1=185633&r2=185634&view=diff
==============================================================================
--- cfe/trunk/test/CXX/dcl.dcl/dcl.link/p7-2.cpp (original)
+++ cfe/trunk/test/CXX/dcl.dcl/dcl.link/p7-2.cpp Thu Jul  4 09:25:25 2013
@@ -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





More information about the cfe-commits mailing list