aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/pr97471.c
blob: f1e512ea3318e394390aa67c7cffa052ef28bd89 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR preprocessor/97471 */
/* { dg-do compile } */

/* ICE with non-fn use of fn-like macro at EOF  */

#define a() b

/* { dg-error "expected" "" { target c } .+2 } */
/* { dg-error "does not name" "" { target c++ } .+1 } */
a