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

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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" } */