aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/equiv_with_vardef.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/equiv_with_vardef.ll')
-rw-r--r--test/CodeGen/X86/equiv_with_vardef.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/equiv_with_vardef.ll b/test/CodeGen/X86/equiv_with_vardef.ll
new file mode 100644
index 0000000..29c19a1
--- /dev/null
+++ b/test/CodeGen/X86/equiv_with_vardef.ll
@@ -0,0 +1,8 @@
+; RUN: not llc < %s 2>&1 | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+module asm ".equiv var, __var"
+
+@var = global i32 0
+; CHECK: symbol 'var' is already defined