diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
| commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
| tree | 4def12e759965de927d963ac65840d663ef9d1ea /test/Bitcode/thinlto-summary-section.ll | |
| parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) | |
Notes
Diffstat (limited to 'test/Bitcode/thinlto-summary-section.ll')
| -rw-r--r-- | test/Bitcode/thinlto-summary-section.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Bitcode/thinlto-summary-section.ll b/test/Bitcode/thinlto-summary-section.ll new file mode 100644 index 000000000000..d120622db819 --- /dev/null +++ b/test/Bitcode/thinlto-summary-section.ll @@ -0,0 +1,11 @@ +; Check the linkage types in both the per-module and combined summaries. +; RUN: opt -module-summary %s -o %t.o +; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s +; RUN: llvm-lto -thinlto -o %t2 %t.o +; RUN: llvm-bcanalyzer -dump %t2.thinlto.bc | FileCheck %s --check-prefix=COMBINED + +; CHECK: <PERMODULE {{.*}} op1=16 +; COMBINED-DAG: <COMBINED {{.*}} op2=16 +define void @functionWithSection() section "some_section" { + ret void +} |
