diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-11 20:52:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-11 20:52:19 +0000 |
commit | 285d03fe3cd27b8c5a246befae5d6e5010c1c4fc (patch) | |
tree | bdf2df58bc74bdc7bcd0c73589d73a61b6d5738e | |
parent | d1e0f5a8ec5d5d5770e18b1d1db0bd7b849dc713 (diff) |
test this in non-pch mode as well as in pch mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68881 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/PCH/variables.c | 4 | ||||
-rw-r--r-- | test/PCH/variables.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/PCH/variables.c b/test/PCH/variables.c index aad40ceb91..4001469f6f 100644 --- a/test/PCH/variables.c +++ b/test/PCH/variables.c @@ -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 diff --git a/test/PCH/variables.h b/test/PCH/variables.h index 6bf82c4483..d8dd2cf331 100644 --- a/test/PCH/variables.h +++ b/test/PCH/variables.h @@ -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 @@ float z; int MAKE_HAPPY(Very); #define A_MACRO_IN_THE_PCH 492 +#define FUNCLIKE_MACRO(X, Y) X ## Y
\ No newline at end of file |