File: u_line_s.c

package info (click to toggle)
mcpp 2.7.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,024 kB
  • ctags: 29,151
  • sloc: ansic: 35,191; sh: 9,231; makefile: 176; cpp: 84; exp: 18
file content (16 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* u_line_s.c:  Undefined behavior on out-of-range #line number.    */

/* { dg-do preprocess } */
/* { dg-options "-std=c99 -pedantic-errors" } */

/*  C99: Line number argument of #line directive should be in range of
    [1..2147483647] */

#line   2147483648  /* { dg-error "out of range" }  */

/*
 * Note: DejaGnu sometimes fails to handle one of the dg-error lines of
 *  #line 0 and #line 2147483648, when those are tested in a single testcase
 *  file.
 *  So, we separated this testcase from u_line.c.
 */