1 /* Copyright (C) 2000 Free Software Foundation, Inc. */ 2 3 /* { dg-do preprocess } */ 4 5 /* Test operator # semantics. */ 6 7 #define OK1 # /* No problem. */ 8 #define OK2(x) x#x /* No problem. */ 9 #define bad1(x) # /* { dg-error "followed by a macro parameter" "#1" } */ 10 #define bad2(x) #y /* { dg-error "followed by a macro parameter" "#2" } */ 11