1 /* PR tree-optimization/36881 */
2 /* { dg-do compile { target fpic } } */
3 /* { dg-options "-O2 -fpic -fdump-tree-switchconv-all" } */
5 const char *foo (int i
)
11 case 6: p
= ""; break;
13 case 7: p
= "abc"; break;
15 case 8: p
= "def"; break;
16 case 9: p
= "ghi"; break;
17 case 5: p
= "jkl"; break;
18 case 3: p
= "mno"; break;
19 default: p
= "prq"; break;
24 /* { dg-final { scan-assembler-not "CSWTCH" } } */
25 /* { dg-final { scan-tree-dump "need runtime relocations" "switchconv" } } */