aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKirill Yukhin <kyukhin@gcc.gnu.org>2013-05-24 09:11:56 +0000
committerKirill Yukhin <kyukhin@gcc.gnu.org>2013-05-24 09:11:56 +0000
commit905b92cb0163ccff04b243053660754b583c3f61 (patch)
treedea3668e56d46e05c09202b799a8594ecac4db6a /gcc
parent634e03d3b84e77a4ff15f6271016dcb309eb0f95 (diff)
downloadgcc-905b92cb0163ccff04b243053660754b583c3f61.zip
gcc-905b92cb0163ccff04b243053660754b583c3f61.tar.gz
gcc-905b92cb0163ccff04b243053660754b583c3f61.tar.bz2
re PR tree-optimization/57385 ([tree-ssa] Possible segfault in fully_constant_vn_reference_p)
PR tree-ssa/57385 * gcc.dg/tree-ssa/pr57385.c: New test. From-SVN: r199283
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr57385.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr57385.c b/gcc/testsuite/gcc.dg/tree-ssa/pr57385.c
new file mode 100644
index 0000000..fc21461
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr57385.c
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-options "-O1" } */
+
+int c;
+
+void foo(int f)
+{
+ int wbi=-100000000;
+ c = (f ? "012346000000000000":"01345:000000006008")[wbi];
+}