1 // This is a regression test on debug info to make sure that we can
2 // print line numbers in asm.
3 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
4 // RUN: llc --disable-fp-elim -O0 -relocation-model=pic | grep {# SrcLine 25}
12 DeepStack(int seed
) : seedVal(seed
) {}
14 int shallowest( int x
) { return shallower(x
+ 1); }
15 int shallower ( int x
) { return shallow(x
+ 2); }
16 int shallow ( int x
) { return deep(x
+ 3); }
17 int deep ( int x
) { return deeper(x
+ 4); }
18 int deeper ( int x
) { return deepest(x
+ 6); }
19 int deepest ( int x
) { return x
+ 7; }
21 int runit() { return shallowest(seedVal
); }
24 int main ( int argc
, char** argv
) {
26 DeepStack
DS9( (argc
> 1 ? atoi(argv
[1]) : 0) );