[cfe-commits] r68881 - in /cfe/trunk/test/PCH: variables.c variables.h

Chris Lattner sabre at nondot.org
Sat Apr 11 13:52:20 PDT 2009


Author: lattner
Date: Sat Apr 11 15:52:19 2009
New Revision: 68881

URL: http://llvm.org/viewvc/llvm-project?rev=68881&view=rev
Log:
test this in non-pch mode as well as in pch mode.

Modified:
    cfe/trunk/test/PCH/variables.c
    cfe/trunk/test/PCH/variables.h

Modified: cfe/trunk/test/PCH/variables.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/variables.c?rev=68881&r1=68880&r2=68881&view=diff

==============================================================================
--- cfe/trunk/test/PCH/variables.c (original)
+++ cfe/trunk/test/PCH/variables.c Sat Apr 11 15:52:19 2009
@@ -1,3 +1,7 @@
+// Test this without pch.
+// RUN: clang-cc -triple=i686-apple-darwin9 -include %S/variables.h -fsyntax-only -verify %s &&
+
+// Test with pch.
 // RUN: clang-cc -emit-pch -triple=i686-apple-darwin9 -o %t %S/variables.h &&
 // RUN: clang-cc -triple=i686-apple-darwin9 -include-pch %t -fsyntax-only -verify %s 
 

Modified: cfe/trunk/test/PCH/variables.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/variables.h?rev=68881&r1=68880&r2=68881&view=diff

==============================================================================
--- cfe/trunk/test/PCH/variables.h (original)
+++ cfe/trunk/test/PCH/variables.h Sat Apr 11 15:52:19 2009
@@ -1,5 +1,9 @@
 // RUN: clang-cc -emit-pch -o variables.h.pch variables.h
 // Do not mess with the whitespace in this file. It's important.
+
+
+
+
 extern float y;
 extern int *ip, x;
 
@@ -11,3 +15,4 @@
 int MAKE_HAPPY(Very);
 
 #define A_MACRO_IN_THE_PCH 492
+#define FUNCLIKE_MACRO(X, Y) X ## Y
\ No newline at end of file





More information about the cfe-commits mailing list