From a32cda40b50699080d0adfd07c67aac69a38497c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Oct 2006 06:21:19 +0000 Subject: [PATCH] make this harder llvm-svn: 39054 --- clang/test/Preprocessor/paste_bad.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/clang/test/Preprocessor/paste_bad.c b/clang/test/Preprocessor/paste_bad.c index 8e80c9b2e8b5..89e879957e4f 100644 --- a/clang/test/Preprocessor/paste_bad.c +++ b/clang/test/Preprocessor/paste_bad.c @@ -1,6 +1,17 @@ -// RUN: not clang -E %s // GCC PR 20077 +// RUN: not clang -E %s && +// RUN: not clang -E %s 2>&1 | grep error: | wc -l | grep 10 -#define a a ## ## -#define a() a ## ## +#define a a ## ## /* { dg-error "end of a macro expansion" } */ +#define b() b ## ## /* { dg-error "end of a macro expansion" } */ +#define c c ## /* { dg-error "end of a macro expansion" } */ +#define d() d ## /* { dg-error "end of a macro expansion" } */ + + +#define e ## ## e /* { dg-error "end of a macro expansion" } */ +#define f() ## ## f /* { dg-error "end of a macro expansion" } */ +#define g ## g /* { dg-error "end of a macro expansion" } */ +#define h() ## h /* { dg-error "end of a macro expansion" } */ +#define i ## /* { dg-error "end of a macro expansion" } */ +#define j() ## /* { dg-error "end of a macro expansion" } */