1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-original" } */
3
f()4 int f(){ int a; return &a==(void *)"hello"; }
g()5 int g(){ return "bye"=="hello"; }
h()6 int h() { return "bye"=="helloooobye"+8; }
7
8 /* { dg-final { scan-tree-dump-times "hello" 1 "original" } } */
9 /* The test in h() should be retained because the result depends on
10 string merging. */
11 /* { dg-final { scan-assembler "hellooo" { target { ! nvptx*-*-* } } } } */
12 /* { dg-final { scan-assembler "104, 101, 108, 108, 111, 111, 111" { target { nvptx*-*-* } } } } */
13
14