File: u_1_8.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 (20 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* u_1_8.c:     Undefined behaviors on unterminated quotations. */

/* { dg-do preprocess } */

/* u.1.8:   Unterminated character constant.    */
/*  The following "comment" may not interpreted as a comment but swallowed by
        the unterminated character constant.    */
#error  I can't understand. /* Token error prior to execution of #error.    */
/* { dg-error "missing terminating ' character| unterminated string or character constant| Unterminated character constant" "" { target *-*-* } 8 } */

/* u.1.9:   Unterminated string literal.    */
    "String literal
    across the lines.
"
/* { dg-error "multi-line string literals are deprecated| string constant runs past end of line| Unterminated string literal, skipped the line\n\[\^ \]* error: Unterminated" "" { target *-*-* } 12 } */

/* u.1.10:  Unterminated header-name.   */
#include    <assert.h
/* { dg-error "missing terminating > character| (`#include'|#include) expects | Unterminated header name" "" { target *-*-* } 18 } */