mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-08 06:50:27 +08:00
re PR tree-optimization/91632 (Probably wrong code since r275026)
PR tree-optimization/91632 * gcc.c-torture/execute/pr91632.c: New test. From-SVN: r275318
This commit is contained in:
parent
2b196fb76e
commit
1525fa83cc
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
30
gcc/testsuite/gcc.c-torture/execute/pr91632.c
Normal file
30
gcc/testsuite/gcc.c-torture/execute/pr91632.c
Normal file
@ -0,0 +1,30 @@
|
||||
/* 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user