diff options
author | Stephen Hines <srhines@google.com> | 2015-03-23 12:10:34 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2015-03-23 12:10:34 -0700 |
commit | ebe69fe11e48d322045d5949c83283927a0d790b (patch) | |
tree | c92f1907a6b8006628a4b01615f38264d29834ea /test/Linker/comdat9.ll | |
parent | b7d2e72b02a4cb8034f32f8247a2558d2434e121 (diff) | |
download | external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.zip external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.tar.gz external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.tar.bz2 |
Update aosp/master LLVM for rebase to r230699.
Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
Diffstat (limited to 'test/Linker/comdat9.ll')
-rw-r--r-- | test/Linker/comdat9.ll | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/test/Linker/comdat9.ll b/test/Linker/comdat9.ll index eada8c6..f155a6e 100644 --- a/test/Linker/comdat9.ll +++ b/test/Linker/comdat9.ll @@ -1,7 +1,19 @@ -; RUN: llvm-link %s %p/Inputs/comdat9.ll -S -o - | FileCheck %s +; RUN: llvm-link %s -S -o - | FileCheck %s -; CHECK: $c = comdat any -; CHECK: @a = alias void ()* @f -; CHECK: define internal void @f() comdat $c { -; CHECK: ret void -; CHECK: } +$c = comdat any +@a = alias void ()* @f +define internal void @f() comdat($c) { + ret void +} + +; CHECK-DAG: $c = comdat any +; CHECK-DAG: @a = alias void ()* @f +; CHECK-DAG: define internal void @f() comdat($c) + +$f2 = comdat largest +define internal void @f2() comdat($f2) { + ret void +} + +; CHECK-DAG: $f2 = comdat largest +; CHECK-DAG: define internal void @f2() comdat { |