1 // This is a regression test on debug info to make sure we don't hit a compile
2 // unit size issue with gdb.
3 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc --disable-fp-elim -o Output/NoCompileUnit.s -f
4 // RUN: as Output/NoCompileUnit.s -o Output/NoCompileUnit.o
5 // RUN: g++ Output/NoCompileUnit.o -o Output/NoCompileUnit.exe
6 // RUN: ( echo "break main"; echo "run" ; echo "p NoCompileUnit::pubname" ) > Output/NoCompileUnit.gdbin
7 // RUN: gdb -q -batch -n -x Output/NoCompileUnit.gdbin Output/NoCompileUnit.exe | tee Output/NoCompileUnit.out | not grep '"low == high"'
8 // XFAIL: alpha|ia64|arm
16 MamaDebugTest(int n) : N(n) {}
18 int getN() const { return N; }
22 class BabyDebugTest : public MamaDebugTest {
26 BabyDebugTest(int n) : MamaDebugTest(n) {}
36 for (int i = 0; i < N; ++i) {
40 for (int i = 0; i < N; ++i) {
50 int BabyDebugTest::doh;
53 int main(int argc, const char *argv[]) {
54 BabyDebugTest BDT(20);