Initialize HasMetadata to zero.
[llvm/avr.git] / test / FrontendC++ / 2009-07-15-LineNumbers.cpp
blob54624a36666e91f32f381e9f10d7dbb6eb98fc0d
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}
5 // XFAIL: *
7 #include <stdlib.h>
9 class DeepStack {
10 int seedVal;
11 public:
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) );
27 return DS9.runit();