1 ; RUN: opt -disable-output -passes=print-lcg %s 2>&1 | FileCheck %s
3 ; Aliased function should be reachable in CGSCC.
5 target triple = "x86_64-grtev4-linux-gnu"
7 ; CHECK: Edges in function: foo
8 ; CHECK: Edges in function: bar
9 ; CHECK: Edges in function: baz
11 ; CHECK: RefSCC with 1 call SCCs:
12 ; CHECK-NEXT: SCC with 1 functions:
15 ; CHECK: RefSCC with 1 call SCCs:
16 ; CHECK-NEXT: SCC with 1 functions:
21 @alias1 = weak dso_local alias ptr (ptr), ptr @foo
23 define dso_local ptr @foo(ptr %returned) {
27 @alias2 = weak dso_local alias ptr (ptr), ptr @bar
29 define internal ptr @bar(ptr %returned) {
33 ; Internal alias is not reachable.
34 @alias3 = internal alias ptr (ptr), ptr @baz
36 define internal ptr @baz(ptr %returned) {