aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr12578.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr12578.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr12578.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr12578.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr12578.c
new file mode 100644
index 000000000..69afffe00
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr12578.c
@@ -0,0 +1,15 @@
+/* PR tree-optimization/12517 */
+
+void trivial_regexp_p(int *s, int len)
+{
+ while (--len) {
+ switch (*s++) {
+ case '\\':
+ switch (*s++) {
+ case '|':
+ ;
+ }
+ }
+ }
+}
+