Argyrios Kyrtzidis 671ce47d60 [preprocessor] Make sure that MacroExpands callbacks are always in source order.
Fixes assertion hit in the preprocessing record. rdar://11426523

llvm-svn: 156557
2012-05-10 18:57:19 +00:00

24 lines
310 B
C

// RUN: %clang_cc1 -fsyntax-only -detailed-preprocessing-record %s
// http://llvm.org/PR11120
#define STRINGIZE(text) STRINGIZE_I(text)
#define STRINGIZE_I(text) #text
#define INC pp-record.h
#include STRINGIZE(INC)
CAKE;
#define DIR 1
#define FNM(x) x
FNM(
#if DIR
int a;
#else
int b;
#endif
)