blob: d120622db8197ee0974d351d948bcc95ea09feb5 [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
7; CHECK: <PERMODULE {{.*}} op1=16
Teresa Johnson02e98332016-04-27 13:28:35 +00008; COMBINED-DAG: <COMBINED {{.*}} op2=16
Mehdi Aminica2c54e2016-04-24 05:31:43 +00009define void @functionWithSection() section "some_section" {
10 ret void
11}