annotate gcc/testsuite/gcc.dg/cpp/strify1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* { dg-do preprocess } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 /* Test operator # semantics. */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 #define OK1 # /* No problem. */
kono
parents:
diff changeset
8 #define OK2(x) x#x /* No problem. */
kono
parents:
diff changeset
9 #define bad1(x) # /* { dg-error "followed by a macro parameter" "#1" } */
kono
parents:
diff changeset
10 #define bad2(x) #y /* { dg-error "followed by a macro parameter" "#2" } */