Home | History | Annotate | Download | only in Inline
      1 ; RUN: opt < %s -inline | llvm-dis
      2 
      3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
      4 target triple = "i386-apple-darwin10.0"
      5 
      6 define i32 @main(i32 %argc, i8** %argv) nounwind ssp {
      7 entry:
      8   call fastcc void @c() nounwind
      9   unreachable
     10 }
     11 
     12 define internal fastcc void @a() nounwind ssp {
     13 entry:
     14   %al = alloca [3 x i32], align 4
     15   %0 = getelementptr inbounds [3 x i32]* %al, i32 0, i32 2 
     16   
     17   call fastcc void @c() nounwind
     18   unreachable
     19 }
     20 
     21 define internal fastcc void @b() nounwind ssp {
     22 entry:
     23   tail call fastcc void @a() nounwind ssp
     24   unreachable
     25 }
     26 
     27 define internal fastcc void @c() nounwind ssp {
     28 entry:
     29   call fastcc void @b() nounwind
     30   unreachable
     31 }
     32