summaryrefslogtreecommitdiff
path: root/test/Assembler/2009-04-25-AliasGEP.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-25 21:26:00 +0000
committerChris Lattner <sabre@nondot.org>2009-04-25 21:26:00 +0000
commit040f758e3abc75bdf6ddb1ce7bea1e1ed1293ccf (patch)
tree971d2575f1d1cdc1927f8fec5c2cd7e4693cc3e7 /test/Assembler/2009-04-25-AliasGEP.ll
parenta2165ed6ee7f73b5cf272a0b5d5d4ed448f52665 (diff)
downloadllvm-040f758e3abc75bdf6ddb1ce7bea1e1ed1293ccf.tar.gz
llvm-040f758e3abc75bdf6ddb1ce7bea1e1ed1293ccf.tar.bz2
llvm-040f758e3abc75bdf6ddb1ce7bea1e1ed1293ccf.tar.xz
testcase and asmparser fix for PR4066
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2009-04-25-AliasGEP.ll')
-rw-r--r--test/Assembler/2009-04-25-AliasGEP.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Assembler/2009-04-25-AliasGEP.ll b/test/Assembler/2009-04-25-AliasGEP.ll
new file mode 100644
index 0000000000..6d07208def
--- /dev/null
+++ b/test/Assembler/2009-04-25-AliasGEP.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
+; PR4066
+target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
+target triple = "i386-apple-darwin9"
+ %struct.i2c_device_id = type { }
+@w83l785ts_id = internal constant [0 x %struct.i2c_device_id] zeroinitializer, align 1 ; <[0 x %struct.i2c_device_id]*> [#uses=1]
+
+@__mod_i2c_device_table = alias getelementptr ([0 x %struct.i2c_device_id]* @w83l785ts_id, i32 0, i32 0) ; <%struct.i2c_device_id*> [#uses=0]