1 /* { dg-options "-O2 -fno-devirtualize --param=profile-func-internal-id=0 -fdump-ipa-profile -Wno-coverage-mismatch -Wno-attributes" } */
4 #include "reorder_class1.h"
5 #include "reorder_class2.h"
7 #include "reorder_class2.h"
8 #include "reorder_class1.h"
12 static __attribute__((always_inline))
16 for (i = 0; i < 1000; i++)
21 static __attribute__((always_inline))
25 for (i = 0; i < 1000; i++)
31 __attribute__((noinline)) void test_a(A *ap) { test1 (ap); }
32 __attribute__((noinline)) void test_b(B *bp) { test2 (bp); }
34 __attribute__((noinline)) void test_b(B *bp) { test2 (bp); }
35 __attribute__((noinline)) void test_a(A *ap) { test1 (ap); }
47 /* { dg-final-use { scan-ipa-dump-times "Indirect call -> direct call" 2 "profile" } } */