summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/if-5.c
blob: 8238a12ae4bb4f599ddf0c4d50f784ee2957297f (plain)
1
2
3
4
5
6
7
8
9
/* Regression test: #ifdef 0 should not crash.  Problem noted by
   Jakub Jelinek <jakub@redhat.com>.  */
/* { dg-do preprocess } */

#ifdef 0  /* { dg-error "macro names" } */
#endif

#ifndef 0  /* { dg-error "macro names" } */
#endif