summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/alias-error.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/alias-error.ll')
-rw-r--r--test/CodeGen/X86/alias-error.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/X86/alias-error.ll b/test/CodeGen/X86/alias-error.ll
new file mode 100644
index 0000000000..89b0876a83
--- /dev/null
+++ b/test/CodeGen/X86/alias-error.ll
@@ -0,0 +1,5 @@
+; RUN: not llc < %s -mtriple=i686-pc-linux-gnu %s 2>&1 | FileCheck %s
+
+@a = external global i32
+@b = alias i32* @a
+; CHECK: b: Target doesn't support aliases to declarations