diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-25 23:22:10 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-25 23:22:10 +0000 |
commit | 041ceb7d57d81c34d530ca50d947857facb6f40f (patch) | |
tree | 8337520a4a5323835a3b09d3f1f77b57d0e15d51 /llvm/test/Linker/broken.ll | |
parent | 093b2d48b46919e4323f4217ab13a4ec46c8ac0a (diff) | |
download | bcm5719-llvm-041ceb7d57d81c34d530ca50d947857facb6f40f.tar.gz bcm5719-llvm-041ceb7d57d81c34d530ca50d947857facb6f40f.zip |
llvm-link: Verify input modules
Otherwise, broken input modules can cause assertions. I've updated two
of the testcases that started failing (modules that had `Require` flags
but didn't meet their own requirements), but Rafael and I decided that
test/Linker/2011-08-22-ResolveAlias.ll should just be deleted outright
-- it's a leftover of the way llvm-gcc used to implement weakref.
llvm-svn: 233229
Diffstat (limited to 'llvm/test/Linker/broken.ll')
-rw-r--r-- | llvm/test/Linker/broken.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Linker/broken.ll b/llvm/test/Linker/broken.ll new file mode 100644 index 00000000000..22764017442 --- /dev/null +++ b/llvm/test/Linker/broken.ll @@ -0,0 +1,8 @@ +; RUN: not llvm-link -o /dev/null %s 2>&1 | FileCheck %s + +; CHECK: input module '{{.*}}broken.ll' is broken +define i32 @foo(i32 %v) { + %first = add i32 %v, %second + %second = add i32 %v, 3 + ret i32 %first +} |