[cfe-commits] r39054 - /cfe/cfe/trunk/test/Preprocessor/paste_bad.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:27:10 PDT 2007
Author: sabre
Date: Wed Jul 11 11:27:10 2007
New Revision: 39054
URL: http://llvm.org/viewvc/llvm-project?rev=39054&view=rev
Log:
make this harder
Modified:
cfe/cfe/trunk/test/Preprocessor/paste_bad.c
Modified: cfe/cfe/trunk/test/Preprocessor/paste_bad.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/paste_bad.c?rev=39054&r1=39053&r2=39054&view=diff
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/paste_bad.c (original)
+++ cfe/cfe/trunk/test/Preprocessor/paste_bad.c Wed Jul 11 11:27:10 2007
@@ -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" } */
More information about the cfe-commits
mailing list