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/testsuite/gcc.dg | |
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/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/20111216-1.c | 17 |
1 files changed, 17 insertions, 0 deletions
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; + } +} |