Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / live-patching-1.c
blob6a1ea38c4916489d5805615417a6d29b32b09880
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -flive-patching=inline-only-static -fdump-ipa-inline" } */
4 extern int sum, n, m;
6 int foo (int a)
8 return a + n;
11 static int bar (int b)
13 return b * m;
16 int main()
18 sum = foo (m) + bar (n);
19 return 0;
22 /* { dg-final { scan-ipa-dump "foo/0 function has external linkage when the user requests only inlining static for live patching" "inline" } } */