2011-10-13 01:36:33 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -detailed-preprocessing-record %s
|
|
|
|
|
|
|
|
// http://llvm.org/PR11120
|
|
|
|
|
2012-03-28 02:47:48 +08:00
|
|
|
#define STRINGIZE(text) STRINGIZE_I(text)
|
|
|
|
#define STRINGIZE_I(text) #text
|
2011-10-13 01:36:33 +08:00
|
|
|
|
2012-03-28 02:47:48 +08:00
|
|
|
#define INC pp-record.h
|
|
|
|
|
|
|
|
#include STRINGIZE(INC)
|
|
|
|
|
|
|
|
CAKE;
|
2012-05-11 02:57:19 +08:00
|
|
|
|
|
|
|
#define DIR 1
|
|
|
|
#define FNM(x) x
|
|
|
|
|
|
|
|
FNM(
|
|
|
|
#if DIR
|
|
|
|
int a;
|
|
|
|
#else
|
|
|
|
int b;
|
|
|
|
#endif
|
|
|
|
)
|
2013-01-10 07:22:20 +08:00
|
|
|
|
|
|
|
#define M1 c
|
|
|
|
#define M2 int
|
|
|
|
#define FM2(x,y) y x
|
|
|
|
FM2(M1, M2);
|
2013-02-23 02:35:59 +08:00
|
|
|
|
|
|
|
#define FM3(x) x
|
|
|
|
FM3(
|
|
|
|
#define M3 int x2
|
|
|
|
)
|
|
|
|
M3;
|