blob: 294f77e615fd68f9104385de559f164154abeeb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* PR preprocessor/36887 */
/* { dg-do preprocess } */
#ifdef LEVEL2
/* Test that we get the include traced location as well. */
#pragma GCC poison p1 /* { dg-note "poisoned here" } */
#else
#define LEVEL2
#include "diagnostic-poison.c"
int p1; /* { dg-error "attempt to use poisoned" } */
_Pragma("GCC poison p2") /* { dg-note "poisoned here" } */
int p2; /* { dg-error "attempt to use poisoned" } */
#endif
|