aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_paste_bad.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-14 18:19:37 +0000
committerChris Lattner <sabre@nondot.org>2011-06-14 18:19:37 +0000
commitb11e43c31dc5d395a7ec6a07259c078dadd4f47b (patch)
treefafbc37eefe408fe2fa264b8d1e949d369c7d45f /test/Preprocessor/macro_paste_bad.c
parent0e0b6931598be8a50ac5c6e0be595b35da276df9 (diff)
revert r133003 and fix the bug properly: the issue was that ## in a token
lexer is not a paste operator, it is a normal token. This fixes a conformance issue shown here: http://p99.gforge.inria.fr/c99-conformance/c99-conformance-clang-2.9.html and it defines away the crash from before. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro_paste_bad.c')
-rw-r--r--test/Preprocessor/macro_paste_bad.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/Preprocessor/macro_paste_bad.c b/test/Preprocessor/macro_paste_bad.c
index 1c0b74ba29..0a028a4468 100644
--- a/test/Preprocessor/macro_paste_bad.c
+++ b/test/Preprocessor/macro_paste_bad.c
@@ -32,10 +32,3 @@ XX // expected-error {{attempt to use a poisoned identifier}}
#define VA __VA_ ## ARGS__
int VA; // expected-warning {{__VA_ARGS__ can only appear in the expansion of a C99 variadic macro}}
-
-// PR9981
-#define M1(A) A
-#define M2(X)
-M1(M2(##)) // expected-error {{pasting formed '()', an invalid preprocessing token}}
-
-