File: l_37_5.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 (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"  } }
 */