PR tree-optimization/91632
* gcc.c-torture/execute/pr91632.c: New test.
From-SVN: r275318
+2019-09-02 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/91632
+ * gcc.c-torture/execute/pr91632.c: New test.
+
2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/tree-ssa/slsr-42.c: New test.
--- /dev/null
+/* PR tree-optimization/91632 */
+/* { dg-additional-options "-fwrapv" } */
+
+static int
+__attribute__((noipa))
+foo (char x)
+{
+ switch (x)
+ {
+ case '"':
+ case '<':
+ case '>':
+ case '\\':
+ case '^':
+ case '`':
+ case '{':
+ case '|':
+ case '}':
+ return 0;
+ }
+ return 1;
+}
+
+int
+main ()
+{
+ if (foo ('h') == 0)
+ __builtin_abort ();
+ return 0;
+}