File: u_line_s.c

package info (click to toggle)
mcpp 2.5-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,544 kB
  • ctags: 28,000
  • sloc: ansic: 34,825; sh: 3,812; makefile: 120; cpp: 84; exp: 18
file content (16 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (9)
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.
 */