Skip to content
Snippets Groups Projects
Commit a32cda40 authored by Chris Lattner's avatar Chris Lattner
Browse files

make this harder

llvm-svn: 39054
parent 1178cbd9
No related branches found
No related tags found
No related merge requests found
// 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" } */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment