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 - | \
4 // RUN: llc --disable-fp-elim -O0 -relocation-model=pic | grep {2009-07-15-LineNumbers.cpp:25$}
11 DeepStack(int seed
) : seedVal(seed
) {}
13 int shallowest( int x
) { return shallower(x
+ 1); }
14 int shallower ( int x
) { return shallow(x
+ 2); }
15 int shallow ( int x
) { return deep(x
+ 3); }
16 int deep ( int x
) { return deeper(x
+ 4); }
17 int deeper ( int x
) { return deepest(x
+ 6); }
18 int deepest ( int x
) { return x
+ 7; }
20 int runit() { return shallowest(seedVal
); }
23 int main ( int argc
, char** argv
) {
25 DeepStack
DS9( (argc
> 1 ? atoi(argv
[1]) : 0) );