File: l_37_9.c

package info (click to toggle)
mcpp 2.7.2-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,152 kB
  • ctags: 29,136
  • sloc: ansic: 35,238; sh: 9,241; makefile: 176; cpp: 84; exp: 18
file content (23 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* l_37_9.c:    Translation limits larger than C99 / 9. */

/* 37.9L:   Number of macro definitions.    */

#include    "m8191.h"

#ifdef  X0FFF
/*  0x0fff; */
    GBM;
#else
/*  0x1fff; */
    MDA;
#endif

/* { dg-do preprocess }
   { dg-options "-std=c99 -pedantic" }
   { dg-warning "| More than 4095 macros defined" "translation limit" { target *-*-* } 0 }
   { dg-final { if ![file exist l_37_9_.i] { return }        } }
   { dg-final { if \{ [grep l_37_9_.i "0x1fff"] != "" \} \{   } }
   { dg-final { return \}                          } }
   { dg-final { fail "l_37_9_.c: defining more than 4095 macros" } }
 */