xref: /llvm-project/llvm/test/Verifier/recursive-type-3.ll (revision c820f2a43eaba02db97c4ff60c58a58e6bdd391d)
1; RUN: llvm-as %s -o /dev/null 2>&1
2
3%rt2 = type { i32, { i8, ptr, i8 }, i32 }
4
5define i32 @main() nounwind {
6entry:
7  ; Check that linked-list-style recursive types where the recursion is through
8  ; a pointer of the type is valid for an alloca.
9  %0 = alloca %rt2
10  ret i32 0
11}
12