blob: 4ec17966e792a67f88d6203ae034d7c5205e0d6f [file] [log] [blame]
Tanya Lattner91974932008-02-16 23:27:24 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as
Chris Lattner55d813a2005-02-09 17:42:24 +00002
3; Ensure that the asm writer emits types before both operands of the
4; store, even though they can be the same.
5
6%RecTy = type %RecTy*
Chris Lattner55d813a2005-02-09 17:42:24 +00007
Tanya Lattner91974932008-02-16 23:27:24 +00008define void @foo() {
9 %A = malloc %RecTy ; <%RecTy> [#uses=1]
10 %B = malloc %RecTy ; <%RecTy> [#uses=1]
11 store %RecTy %B, %RecTy %A
Chris Lattner55d813a2005-02-09 17:42:24 +000012 ret void
13}
Tanya Lattner91974932008-02-16 23:27:24 +000014