summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr87314-1.c
blob: 9bc905612b5b3995597c2cddfd319aed049e9505 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-original" } */

int f(){ int a; return &a==(void *)"hello"; }
int g(){ return "bye"=="hello"; }
int h() { return "bye"=="helloooobye"+8; }

/* { dg-final { scan-tree-dump-times "hello" 1 "original" } } */
/* The test in h() should be retained because the result depends on
   string merging.  */
/* { dg-final { scan-assembler "hellooo" } } */