File: n_29.c

package info (click to toggle)
mcpp 2.7.2-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,148 kB
  • sloc: ansic: 35,244; sh: 9,241; makefile: 176; cpp: 84; exp: 18
file content (18 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* n_29.c:  #undef directive.   */

/* 29.1:    Undefined macro is not a macro. */
/*  DEFINED;    */
#define DEFINED
#undef  DEFINED
    DEFINED;

/* 29.2:    Undefining undefined name is not an error.  */
#undef  UNDEFINED

/* { dg-do preprocess }
   { dg-final { if ![file exist n_29.i] { return }                      } }
   { dg-final { if \{ [grep n_29.i "DEFINED"] != ""             \} \{   } }
   { dg-final { return \}                                               } }
   { dg-final { fail "n_29.c: #undef"                                   } }
 */