aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/2007-08-06-AliasInvalid.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2007-08-06-AliasInvalid.ll')
-rw-r--r--test/Assembler/2007-08-06-AliasInvalid.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/2007-08-06-AliasInvalid.ll b/test/Assembler/2007-08-06-AliasInvalid.ll
new file mode 100644
index 0000000000..0711e037a6
--- /dev/null
+++ b/test/Assembler/2007-08-06-AliasInvalid.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s > /dev/null |& grep {Invalid type for reference to global}
+; PR1577
+
+@anInt = global i32 1 alias i32 @anAlias
+define i32 @main() {
+ ret i32 0
+}