diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2007-11-08 18:45:15 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2007-11-08 18:45:15 +0000 |
commit | b410df995c592491746ed76039edb62f5cdbf8cf (patch) | |
tree | d80736e874f99a59a3159224af9e5279b3a51f14 /test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll | |
parent | ab9338eb9f18a1303e271ed144f78c29a48ff011 (diff) | |
download | llvm-b410df995c592491746ed76039edb62f5cdbf8cf.tar.gz llvm-b410df995c592491746ed76039edb62f5cdbf8cf.tar.bz2 llvm-b410df995c592491746ed76039edb62f5cdbf8cf.tar.xz |
Better check
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll')
-rw-r--r-- | test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll b/test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll index 61e67ad10c..f3caf07976 100644 --- a/test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll +++ b/test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll @@ -6,12 +6,15 @@ target triple = "i686-pc-linux-gnu" %opaque_t = type opaque +%op_ts = type {opaque, i32} + @g = external global %opaque_t +@h = external global %op_ts define i32 @foo() { entry: %x = load i8* bitcast (%opaque_t* @g to i8*) - %y = load i32* bitcast (%opaque_t* @g to i32*) + %y = load i32* bitcast (%op_ts* @h to i32*) %z = zext i8 %x to i32 %r = add i32 %y, %z ret i32 %r |