summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/_Pragma2.c
blob: 24c4457ede7ed5ec25a2ecc251574113c7b933b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Copyright (C) 2000 Free Software Foundation, Inc.  */

/* { dg-do preprocess } */

/* Don't allow directives in a _Pragma string. */

/* Contributed by Neil Booth 14 Nov 2000.  */

_Pragma("#define test")

#ifdef test
#error Do not allow directives in _Pragma strings
#endif