diff options
Diffstat (limited to 'test/Linker/broken.ll')
-rw-r--r-- | test/Linker/broken.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Linker/broken.ll b/test/Linker/broken.ll new file mode 100644 index 0000000..2276401 --- /dev/null +++ b/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 +} |