blob: 5300afba7087d4d6b8bae11ea4e8e39b5503bc7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* Test that function-like macros are restricted to directives, and
that unterminated ones are warned about. */
/* { dg-do preprocess } */
#define f(x) x
#if 2 f(/* { dg-error "unterminated" "unterminated macro in directive" } */
)
#endif
f( /* { dg-error "unterminated" "unterminated macro" } */
|