Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git] / test / CodeGen / Generic / stacksave-restore.ll
blobb124b5f9b7d5521f7f9e09c2b6b6f9773fc52065
1 ; RUN: llc < %s
3 declare i8* @llvm.stacksave()
5 declare void @llvm.stackrestore(i8*)
7 define i32* @test(i32 %N) {
8         %tmp = call i8* @llvm.stacksave( )              ; <i8*> [#uses=1]
9         %P = alloca i32, i32 %N         ; <i32*> [#uses=1]
10         call void @llvm.stackrestore( i8* %tmp )
11         %Q = alloca i32, i32 %N         ; <i32*> [#uses=0]
12         ret i32* %P