OSDN Git Service

gcc/testsuite
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / multiline.c
1 /* Copyright (C) 2000, 2003 Free Software Foundation, Inc.  */
2 /* { dg-do preprocess } */
3 /* { dg-options "-C" } */
4 /* Test that multi-line tokens are recognized by cpp0 as being
5    multiline .  Source: Neil Booth, 17 Dec 2000.  */
6 /* Line 1
7    Line 2
8    Line 3
9    Line 4
10 */
11 "line 1
12  line 2
13  line 3
14  line 4"
15 L"line 1
16   line 2
17   line 3
18   line 4"
19 /* Nowhere in the output of this file should there be a blank line.
20    We check for that in the .i file.
21    { dg-final { scan-file-not multiline.i "(^|\\n)\\n" } } */
22 /* { dg-warning "missing term" "multiline strings" { target *-*-* } 11 } */
23 /* { dg-warning "missing term" "multiline strings" { target *-*-* } 14 } */
24 /* { dg-warning "missing term" "multiline strings" { target *-*-* } 15 } */
25 /* { dg-warning "missing term" "multiline strings" { target *-*-* } 18 } */