PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / iinline-cstagg-2.c
blob546db87ea5d33538b6a1632af70c7718488fe124
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-sra -fno-ipa-cp" } */
4 typedef struct S
6 int add_offset;
7 int (*call)(int);
8 } S;
10 static int
11 bar (const S f, int x)
13 x = f.call (x);
14 return x;
17 static int
18 thisisthetarget (int x)
20 return x * x;
23 int
24 outerfunction (int x)
26 return bar ((S){16, thisisthetarget}, x);
30 /* { dg-final { scan-ipa-dump "thisisthetarget\[^\\n\]*inline copy in outerfunction" "inline" } } */