| // This is a regression test on debug info to make sure we don't hit a compile |
| // unit size issue with gdb. |
| // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \ |
| // RUN: llc --disable-fp-elim -o NoCompileUnit.s |
| // RUN: %compile_c NoCompileUnit.s -o NoCompileUnit.o |
| // RUN: %link NoCompileUnit.o -o NoCompileUnit.exe |
| // RUN: echo {break main\nrun\np NoCompileUnit::pubname} > %t2 |
| // RUN: gdb -q -batch -n -x %t2 NoCompileUnit.exe | \ |
| // RUN: tee NoCompileUnit.out | not grep {"low == high"} |
| MamaDebugTest(int n) : N(n) {} |
| int getN() const { return N; } |
| class BabyDebugTest : public MamaDebugTest { |
| BabyDebugTest(int n) : MamaDebugTest(n) {} |
| for (int i = 0; i < N; ++i) { |
| for (int i = 0; i < N; ++i) { |
| int main(int argc, const char *argv[]) { |