[llvm-commits] [llvm] r124635 - /llvm/trunk/test/FrontendC++/2006-11-30-NoCompileUnit.cpp
Devang Patel
dpatel at apple.com
Mon Jan 31 16:47:16 PST 2011
Author: dpatel
Date: Mon Jan 31 18:47:16 2011
New Revision: 124635
URL: http://llvm.org/viewvc/llvm-project?rev=124635&view=rev
Log:
Remove stale test that has never worked, afaik.
Removed:
llvm/trunk/test/FrontendC++/2006-11-30-NoCompileUnit.cpp
Removed: llvm/trunk/test/FrontendC++/2006-11-30-NoCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-11-30-NoCompileUnit.cpp?rev=124634&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-11-30-NoCompileUnit.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-11-30-NoCompileUnit.cpp (removed)
@@ -1,60 +0,0 @@
-// 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 - | \
-// 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"}
-// XFAIL: alpha,arm
-// XFAIL: *
-// See PR2454
-
-
-class MamaDebugTest {
-private:
- int N;
-
-protected:
- MamaDebugTest(int n) : N(n) {}
-
- int getN() const { return N; }
-
-};
-
-class BabyDebugTest : public MamaDebugTest {
-private:
-
-public:
- BabyDebugTest(int n) : MamaDebugTest(n) {}
-
- static int doh;
-
- int doit() {
- int N = getN();
- int Table[N];
-
- int sum = 0;
-
- for (int i = 0; i < N; ++i) {
- int j = i;
- Table[i] = j;
- }
- for (int i = 0; i < N; ++i) {
- int j = Table[i];
- sum += j;
- }
-
- return sum;
- }
-
-};
-
-int BabyDebugTest::doh;
-
-
-int main(int argc, const char *argv[]) {
- BabyDebugTest BDT(20);
- return BDT.doit();
-}
More information about the llvm-commits
mailing list