From: Chris Lattner Date: Sat, 11 Apr 2009 20:52:19 +0000 (+0000) Subject: test this in non-pch mode as well as in pch mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=285d03fe3cd27b8c5a246befae5d6e5010c1c4fc;p=clang 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 --- 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