1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -flive-patching=inline-only-static -fdump-ipa-inline" } */ 3 4 extern int sum, n, m; 5 foo(int a)6int foo (int a) 7 { 8 return a + n; 9 } 10 bar(int b)11static int bar (int b) 12 { 13 return b * m; 14 } 15 main()16int main() 17 { 18 sum = foo (m) + bar (n); 19 return 0; 20 } 21 22 /* { dg-final { scan-ipa-dump "foo/0 function has external linkage when the user requests only inlining static for live patching" "inline" } } */ 23