diff options
Diffstat (limited to 'test/Assembler/unsized-recursive-type.ll')
-rw-r--r-- | test/Assembler/unsized-recursive-type.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Assembler/unsized-recursive-type.ll b/test/Assembler/unsized-recursive-type.ll new file mode 100644 index 0000000..b6d93fa --- /dev/null +++ b/test/Assembler/unsized-recursive-type.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-as < %s 2>&1 | FileCheck %s + +; CHECK: base element of getelementptr must be sized + +%myTy = type { %myTy } +define void @foo(%myTy* %p){ + %0 = getelementptr %myTy, %myTy* %p, i32 0 + ret void +} |