libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / live-patching-4.c
blobffea8f4cc1c66e8892758da77fe521de9e1ffaec
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -flive-patching=inline-only-static -fdump-tree-einline-optimized" } */
4 extern int sum, n, m;
6 extern inline __attribute__((always_inline)) int foo (int a);
7 inline __attribute__((always_inline)) int foo (int a)
9 return a + n;
12 static int bar (int b)
14 return b * m;
17 int main()
19 sum = foo (m) + bar (n);
20 return 0;
23 /* { dg-final { scan-tree-dump "Inlining foo/0 into main/2" "einline" } } */