diff options
Diffstat (limited to 'test/Lexer/c90.c')
-rw-r--r-- | test/Lexer/c90.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Lexer/c90.c b/test/Lexer/c90.c index d910572..7142c09 100644 --- a/test/Lexer/c90.c +++ b/test/Lexer/c90.c @@ -32,3 +32,10 @@ void test3() { (void)L"\u1234"; // expected-error {{unicode escape sequences are only valid in C99 or C++}} (void)L'\u1234'; // expected-error {{unicode escape sequences are only valid in C99 or C++}} } + +#define PREFIX(x) foo ## x +int test4() { + int PREFIX(0p) = 0; + int *p = &PREFIX(0p+1); + return p[-1]; +} |