blob: 3d67279617ec823b73a3dba9c3716e9a0ee756a5 [file] [log] [blame]
Mehdi Aminica2c54e2016-04-24 05:31:43 +00001; Check the linkage types in both the per-module and combined summaries.
2; RUN: opt -module-summary %s -o %t.o
3; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s
4; RUN: llvm-lto -thinlto -o %t2 %t.o
5; RUN: llvm-bcanalyzer -dump %t2.thinlto.bc | FileCheck %s --check-prefix=COMBINED
6
Teresa Johnson519465b2017-01-05 14:32:16 +00007; Flags should be 0x17 (23) for local linkage (0x3) and not being importable
8; (0x10) due to local linkage plus having a section.
9; CHECK: <PERMODULE {{.*}} op1=23
10; COMBINED-DAG: <COMBINED {{.*}} op2=23
11define internal void @functionWithSection() section "some_section" {
Mehdi Aminica2c54e2016-04-24 05:31:43 +000012 ret void
13}