diff options
author | Ian Lance Taylor <iant@google.com> | 2011-12-16 23:11:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-16 23:11:37 +0000 |
commit | 8a76ce4e34c38b9825af59a58e260201a2e6518c (patch) | |
tree | 05d04c7666bd96de71b64b754f16d0fd17dd656d /gcc | |
parent | 10574a9f5cb4c431cba1af66d95000960ae97bfc (diff) | |
download | gcc-8a76ce4e34c38b9825af59a58e260201a2e6518c.zip gcc-8a76ce4e34c38b9825af59a58e260201a2e6518c.tar.gz gcc-8a76ce4e34c38b9825af59a58e260201a2e6518c.tar.bz2 |
re PR middle-end/51592 (ICE with -fnon-call-exceptions)
PR middle-end/51592
* gcc.dg/20111216-1.c: New test.
From-SVN: r182419
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20111216-1.c | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 37023d1..0a22ca9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-12-16 Ian Lance Taylor <iant@google.com> + + PR middle-end/51592 + * gcc.dg/20111216-1.c: New test. + 2011-12-16 Jason Merrill <jason@redhat.com> PR c++/51461 diff --git a/gcc/testsuite/gcc.dg/20111216-1.c b/gcc/testsuite/gcc.dg/20111216-1.c new file mode 100644 index 0000000..cd82cf9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20111216-1.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-O -fexceptions -fnon-call-exceptions" } */ + +extern void f2 () __attribute__ ((noreturn)); +void +f1 () +{ + unsigned char a[8]; + unsigned int i; + + for (i = 0; i < 8; i++) + { + if (i > 8) + f2 (); + a[i] = i <= 8; + } +} |