1ca2c54e0SMehdi Amini; Check the linkage types in both the per-module and combined summaries.
2ca2c54e0SMehdi Amini; RUN: opt -module-summary %s -o %t.o
3ca2c54e0SMehdi Amini; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s
4ca2c54e0SMehdi Amini; RUN: llvm-lto -thinlto -o %t2 %t.o
5ca2c54e0SMehdi Amini; RUN: llvm-bcanalyzer -dump %t2.thinlto.bc | FileCheck %s --check-prefix=COMBINED
6ca2c54e0SMehdi Amini
7*519465b9STeresa Johnson; Flags should be 0x17 (23) for local linkage (0x3) and not being importable
8*519465b9STeresa Johnson; (0x10) due to local linkage plus having a section.
9*519465b9STeresa Johnson; CHECK: <PERMODULE {{.*}} op1=23
10*519465b9STeresa Johnson; COMBINED-DAG: <COMBINED {{.*}} op2=23
11*519465b9STeresa Johnsondefine internal void @functionWithSection() section "some_section" {
12ca2c54e0SMehdi Amini    ret void
13ca2c54e0SMehdi Amini}
14