blob: b115a99cd5e11c7986de8f688f781e4e03f91e93 [file] [log] [blame]
Mehdi Amini822155b2016-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
Rafael Espindola1e1801c2018-01-11 22:15:05 +00007; Flags should be 0x57 (87) for local linkage (0x3), dso_local (0x40) and not being importable
Teresa Johnsone4e62792017-01-05 14:32:16 +00008; (0x10) due to local linkage plus having a section.
Rafael Espindola1e1801c2018-01-11 22:15:05 +00009; CHECK: <PERMODULE {{.*}} op1=87
10; COMBINED-DAG: <COMBINED {{.*}} op2=87
Teresa Johnsone4e62792017-01-05 14:32:16 +000011define internal void @functionWithSection() section "some_section" {
Mehdi Amini822155b2016-04-24 05:31:43 +000012 ret void
13}