diff options
Diffstat (limited to 'test/Assembler')
-rw-r--r-- | test/Assembler/invalid-comdat.ll | 4 | ||||
-rw-r--r-- | test/Assembler/invalid-comdat2.ll | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/Assembler/invalid-comdat.ll b/test/Assembler/invalid-comdat.ll new file mode 100644 index 0000000000..987e1e1e7d --- /dev/null +++ b/test/Assembler/invalid-comdat.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s 2>&1 | FileCheck %s + +@v = global i32 0, comdat $v +; CHECK: use of undefined comdat '$v' diff --git a/test/Assembler/invalid-comdat2.ll b/test/Assembler/invalid-comdat2.ll new file mode 100644 index 0000000000..ed656ef2b1 --- /dev/null +++ b/test/Assembler/invalid-comdat2.ll @@ -0,0 +1,5 @@ +; RUN: not llvm-as < %s 2>&1 | FileCheck %s + +$v = comdat any +$v = comdat any +; CHECK: redefinition of comdat '$v' |