diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2000-12-17 14:33:34 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-12-17 14:33:34 +0000 |
commit | 4119f8a1873ab218ea15c3f549db1b0fce05bdcd (patch) | |
tree | d83b808850bfa56ab43bf90c91b562a69d6a0bac | |
parent | 602914743550668c4cd731561d1a51dfbd86bc5b (diff) | |
download | gcc-4119f8a1873ab218ea15c3f549db1b0fce05bdcd.zip gcc-4119f8a1873ab218ea15c3f549db1b0fce05bdcd.tar.gz gcc-4119f8a1873ab218ea15c3f549db1b0fce05bdcd.tar.bz2 |
* gcc.dg/cpp/multiline.c: New test.
From-SVN: r38330
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/multiline.c | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 54f7a38..f0f0724 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk> + * gcc.dg/cpp/multiline.c: New test. + +2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk> + * g++.old-deja/g++.other/syshdr1.C: Update. * gcc.dg/cpp/lineflags.c: Remove temporarily. diff --git a/gcc/testsuite/gcc.dg/cpp/multiline.c b/gcc/testsuite/gcc.dg/cpp/multiline.c new file mode 100644 index 0000000..36b6053 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/multiline.c @@ -0,0 +1,24 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ +/* { dg-do preprocess } */ +/* { dg-options "-C" } */ +/* Test that multi-line tokens are recognised by cpp0 as being + multiline . Source: Neil Booth, 17 Dec 2000. */ +/* Line 1 + Line 2 + Line 3 + Line 4 +*/ +"line 1 + line 2 + line 3 + line 4" +L"line 1 + line 2 + line 3 + line 4" +/* Nowhere in the output of this file should there be a blank line. + We check for that in the .i file. + { dg-final { if ![file exists multiline.i] { return } } } + { dg-final { if \{ [grep multiline.i "^$"] == "" \} \{ } } + { dg-final { return \} } } + { dg-final { fail "multiline.c: multi-line tokens" } } */ |