diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa/pr71947-7.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/pr71947-7.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71947-7.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71947-7.c new file mode 100644 index 00000000000..b44c064aa23 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71947-7.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fno-tree-vrp -fdump-tree-dom-details" } */ + + +int f(int x, int y) +{ + int ret; + if (x == y) + ret = x % y; + else + ret = 1; + + return ret; +} +/* { dg-final { scan-tree-dump "Replaced redundant expr \[^\r\n\]* with .0." "dom2" } } */ + + |