PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / inline-4.c
blobc9f79782744b9d4854d43d196ee2c6f6a279eeb4
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-einline" } */
3 /* { dg-add-options bind_pic_locally } */
5 extern int rand(void);
7 int get_data_for (int id)
9 return rand();
12 int my_id;
14 int main()
16 int res = get_data_for (my_id);
17 switch (res)
19 case 0:
20 return 666;
21 default:
22 return -1;
26 /* { dg-final { scan-tree-dump "Inlining get_data_for into main" "einline" } } */