Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/cpp/trad/funlike.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* Test that undefined names evaluate to zero, that macros after a funlike macro are expanded, and that if it is a '(' the funlike macro is not treated as such. */ /* { dg-do preprocess } */ #define f(x) x #define h != 0 #define i #define paren ( #if f != 0 # error /* { dg-bogus "error" "undefined name" } */ #endif #if f h # error /* { dg-bogus "error" "h not expanded" } */ #endif #if f i # error /* { dg-bogus "error" "empty macro" } */ #endif #if f paren 6) /* { dg-error "-:missing binary" "macro-expanded parenthesis" } */ #endif