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

/* { dg-do preprocess }
   { dg-excess-errors "" } */

/* 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 *-*-* } 9 } */

/* u.1.9:   Unterminated string literal.    */
    "String literal
    across the lines.
"
/* { dg-error "multi-line string literals are deprecated| missing terminating \" character| string constant runs past end of line| Unterminated string literal, skipped the line" "" { target *-*-* } 13 } */

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