File: l_37_5.c

package info (click to toggle)
mcpp 2.6.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,660 kB
  • ctags: 28,783
  • sloc: ansic: 32,282; sh: 3,359; makefile: 148; cpp: 84; exp: 18
file content (16 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* l_37_5.c:    Translation limits larger than C99 / 5. */

/*  37.5L:  Nested source file inclusion.   */
/*  Define one of the macros X1F, X3F or it will test 127 levels of
        #include    */
#include    "nest1.h"

/* { dg-do preprocess }
   { dg-options "-std=c99 -pedantic" }
   { dg-warning "| More than 15 nesting of #include" "translation limit" { target *-*-* } 0 }
   { dg-final { if ![file exist l_37_5_.i] { return }               } }
   { dg-final { if \{ [grep l_37_5_.i "nest = 0x7f"] != "" \} \{    } }
   { dg-final { return \}                                           } }
   { dg-final { fail "l_37_5_.c: more than 15 nesting of #include"  } }
 */