brintos

brintos / llvm-project-archived public Read only

0
0
Text · 603 B · 5a2c02e Raw
14 lines · plain
1; Check the linkage types in both the per-module and combined summaries.2; RUN: opt -module-summary %s -o %t.o3; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s4; RUN: llvm-lto -thinlto -o %t2 %t.o5; RUN: llvm-bcanalyzer -dump %t2.thinlto.bc | FileCheck %s --check-prefix=COMBINED6 7; Flags should be 0x57 (87) for local linkage (0x3), dso_local (0x40) and not being importable8; (0x10) due to local linkage plus having a section.9; CHECK: <PERMODULE_PROFILE {{.*}} op1=8710; COMBINED-DAG: <COMBINED_PROFILE {{.*}} op2=8711define internal void @functionWithSection() section "some_section" {12    ret void13}14