diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-03-03 12:12:22 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-03-03 12:12:22 +0100 |
commit | 0f0d4bfeef6e2df39e410587ce9f7bf741115f1d (patch) | |
tree | fe534ca8646fe8e118592ee8fc7c16478e5e9f0d | |
parent | abffd8570b614c64a1053218fbd9f30a4a3a9338 (diff) | |
download | gcc-0f0d4bfeef6e2df39e410587ce9f7bf741115f1d.zip gcc-0f0d4bfeef6e2df39e410587ce9f7bf741115f1d.tar.gz gcc-0f0d4bfeef6e2df39e410587ce9f7bf741115f1d.tar.bz2 |
re PR preprocessor/60400 (ICE with trigraphs)
PR preprocessor/60400
* c-c++-common/cpp/pr60400.c: New test.
* c-c++-common/cpp/pr60400-1.h: New file.
* c-c++-common/cpp/pr60400-2.h: New file.
From-SVN: r208272
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/cpp/pr60400-1.h | 3 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/cpp/pr60400-2.h | 4 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/cpp/pr60400.c | 13 |
4 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cf2156a..2554f4b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2014-03-03 Jakub Jelinek <jakub@redhat.com> + PR preprocessor/60400 + * c-c++-common/cpp/pr60400.c: New test. + * c-c++-common/cpp/pr60400-1.h: New file. + * c-c++-common/cpp/pr60400-2.h: New file. + PR objc++/60398 * obj-c++.dg/invalid-method-2.mm: Adjust dg-error regexps. diff --git a/gcc/testsuite/c-c++-common/cpp/pr60400-1.h b/gcc/testsuite/c-c++-common/cpp/pr60400-1.h new file mode 100644 index 0000000..3e32175 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/pr60400-1.h @@ -0,0 +1,3 @@ +??=ifndef PR60400_1_H +??=define PR60400_1_H +??=endif diff --git a/gcc/testsuite/c-c++-common/cpp/pr60400-2.h b/gcc/testsuite/c-c++-common/cpp/pr60400-2.h new file mode 100644 index 0000000..d9a5906 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/pr60400-2.h @@ -0,0 +1,4 @@ +??=ifndef PR60400_2_H +??=define PR60400_2_H +??=include "pr60400-1.h" +??=endif diff --git a/gcc/testsuite/c-c++-common/cpp/pr60400.c b/gcc/testsuite/c-c++-common/cpp/pr60400.c new file mode 100644 index 0000000..fc3e0d9 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/pr60400.c @@ -0,0 +1,13 @@ +/* PR preprocessor/60400 */ +/* { dg-do compile } */ +/* { dg-options "-trigraphs -Wtrigraphs" } */ + +??=include "pr60400-1.h" +??=include "pr60400-2.h" + +/* { dg-warning "trigraph" "" { target *-*-* } 1 } */ +/* { dg-warning "trigraph" "" { target *-*-* } 2 } */ +/* { dg-warning "trigraph" "" { target *-*-* } 3 } */ +/* { dg-warning "trigraph" "" { target *-*-* } 4 } */ +/* { dg-warning "trigraph" "" { target *-*-* } 5 } */ +/* { dg-warning "trigraph" "" { target *-*-* } 6 } */ |