[llvm-commits] [llvm] r138149 - /llvm/trunk/test/FrontendC++/

Eric Christopher echristo at apple.com
Fri Aug 19 16:41:50 PDT 2011


Author: echristo
Date: Fri Aug 19 18:41:50 2011
New Revision: 138149

URL: http://llvm.org/viewvc/llvm-project?rev=138149&view=rev
Log:
Remove migrated or obsolete tests.

Removed:
    llvm/trunk/test/FrontendC++/2005-02-11-AnonymousUnion.cpp
    llvm/trunk/test/FrontendC++/2005-02-13-BadDynamicInit.cpp
    llvm/trunk/test/FrontendC++/2005-02-14-BitFieldOffset.cpp
    llvm/trunk/test/FrontendC++/2005-02-19-BitfieldStructCrash.cpp
    llvm/trunk/test/FrontendC++/2005-02-19-UnnamedVirtualThunkArgument.cpp
    llvm/trunk/test/FrontendC++/2005-02-20-BrokenReferenceTest.cpp
    llvm/trunk/test/FrontendC++/2005-02-27-PlacementArrayNewCrash.cpp
    llvm/trunk/test/FrontendC++/2005-07-21-VirtualBaseAccess.cpp
    llvm/trunk/test/FrontendC++/2006-03-01-GimplifyCrash.cpp
    llvm/trunk/test/FrontendC++/2006-03-06-C++RecurseCrash.cpp
    llvm/trunk/test/FrontendC++/2006-09-08-powi.cpp
    llvm/trunk/test/FrontendC++/2006-09-12-OpaqueStructCrash.cpp
    llvm/trunk/test/FrontendC++/2006-09-27-Debug-Protection.cpp
    llvm/trunk/test/FrontendC++/2006-10-30-ClassBitfield.cpp
    llvm/trunk/test/FrontendC++/2006-11-06-StackTrace.cpp
    llvm/trunk/test/FrontendC++/2006-11-20-GlobalSymbols.cpp
    llvm/trunk/test/FrontendC++/2006-11-30-ConstantExprCrash.cpp

Removed: llvm/trunk/test/FrontendC++/2005-02-11-AnonymousUnion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2005-02-11-AnonymousUnion.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2005-02-11-AnonymousUnion.cpp (original)
+++ llvm/trunk/test/FrontendC++/2005-02-11-AnonymousUnion.cpp (removed)
@@ -1,32 +0,0 @@
-// RUN: %llvmgxx %s -S -o -
-
-// Test anonymous union with members of the same size.
-int test1(float F) {
-  union {
-     float G;
-     int i;
-  };
-  G = F;
-  return i;
-}
-
-// test anonymous union with members of differing size.
-int test2(short F) {
-  volatile union {
-     short G;
-     int i;
-  };
-  G = F;
-  return i;
-}
-
-// Make sure that normal unions work.  duh :)
-volatile union U_t {
-  short S;
-  int i;
-} U;
-
-int test3(short s) {
-  U.S = s;
-  return U.i;
-}

Removed: llvm/trunk/test/FrontendC++/2005-02-13-BadDynamicInit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2005-02-13-BadDynamicInit.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2005-02-13-BadDynamicInit.cpp (original)
+++ llvm/trunk/test/FrontendC++/2005-02-13-BadDynamicInit.cpp (removed)
@@ -1,9 +0,0 @@
-// RUN: %llvmgxx %s -S -o - | not grep llvm.global_ctors
-// This testcase corresponds to PR509
-struct Data {
-  unsigned *data;
-  unsigned array[1];
-};
-
-Data shared_null = { shared_null.array };
-

Removed: llvm/trunk/test/FrontendC++/2005-02-14-BitFieldOffset.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2005-02-14-BitFieldOffset.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2005-02-14-BitFieldOffset.cpp (original)
+++ llvm/trunk/test/FrontendC++/2005-02-14-BitFieldOffset.cpp (removed)
@@ -1,11 +0,0 @@
-// RUN: %llvmgxx %s -S -o - | not grep {i32 6}
-
-struct QVectorTypedData {
-    int size;
-    unsigned int sharable : 1;
-    unsigned short array[1];
-};
-
-void foo(QVectorTypedData *X) {
-  X->array[0] = 123;
-}

Removed: llvm/trunk/test/FrontendC++/2005-02-19-BitfieldStructCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2005-02-19-BitfieldStructCrash.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2005-02-19-BitfieldStructCrash.cpp (original)
+++ llvm/trunk/test/FrontendC++/2005-02-19-BitfieldStructCrash.cpp (removed)
@@ -1,14 +0,0 @@
-// RUN: %llvmgxx -S %s -o -
-
-struct QChar {unsigned short X; QChar(unsigned short); } ;
-
-struct Command {
-        Command(QChar c) : c(c) {}
-        unsigned int type : 4;
-        QChar c;
-    };
-
-Command X(QChar('c'));
-
-void Foo(QChar );
-void bar() { Foo(X.c); }

Removed: llvm/trunk/test/FrontendC++/2005-02-19-UnnamedVirtualThunkArgument.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2005-02-19-UnnamedVirtualThunkArgument.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2005-02-19-UnnamedVirtualThunkArgument.cpp (original)
+++ llvm/trunk/test/FrontendC++/2005-02-19-UnnamedVirtualThunkArgument.cpp (removed)
@@ -1,22 +0,0 @@
-// RUN: %llvmgxx -S %s -o /dev/null
-
-struct Foo  {
-    Foo();
-    virtual ~Foo();
-};
-
-struct Bar  {
-    Bar();
-    virtual ~Bar();
-    virtual bool test(bool) const;
-};
-
-struct Baz : public Foo, public Bar  {
-    Baz();
-    virtual ~Baz();
-    virtual bool test(bool) const;
-};
-
-bool Baz::test(bool) const  {
-    return true;
-}

Removed: llvm/trunk/test/FrontendC++/2005-02-20-BrokenReferenceTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2005-02-20-BrokenReferenceTest.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2005-02-20-BrokenReferenceTest.cpp (original)
+++ llvm/trunk/test/FrontendC++/2005-02-20-BrokenReferenceTest.cpp (removed)
@@ -1,11 +0,0 @@
-// RUN: %llvmgxx %s -S -o /dev/null
-
-void test(unsigned char *b, int rb) {
-  typedef unsigned char imgfoo[10][rb];
-  imgfoo &br = *(imgfoo *)b;
-
-  br[0][0] = 1;
-
-  rb = br[0][0];
-}
-

Removed: llvm/trunk/test/FrontendC++/2005-02-27-PlacementArrayNewCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2005-02-27-PlacementArrayNewCrash.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2005-02-27-PlacementArrayNewCrash.cpp (original)
+++ llvm/trunk/test/FrontendC++/2005-02-27-PlacementArrayNewCrash.cpp (removed)
@@ -1,8 +0,0 @@
-// RUN: %llvmgxx -S %s -o -
-
-#include <new>
-typedef double Ty[4];
-
-void foo(Ty *XX) {
-  new(XX) Ty();
-}

Removed: llvm/trunk/test/FrontendC++/2005-07-21-VirtualBaseAccess.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2005-07-21-VirtualBaseAccess.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2005-07-21-VirtualBaseAccess.cpp (original)
+++ llvm/trunk/test/FrontendC++/2005-07-21-VirtualBaseAccess.cpp (removed)
@@ -1,14 +0,0 @@
-// RUN: %llvmgxx -xc++ %s -S -o - | opt -die -S | not grep cast
-
-void foo(int*);
-
-struct FOO {
-  int X;
-};
-
-struct BAR : virtual FOO { BAR(); };
-
-int testfn() {
-  BAR B;
-  foo(&B.X);
-}

Removed: llvm/trunk/test/FrontendC++/2006-03-01-GimplifyCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-03-01-GimplifyCrash.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-03-01-GimplifyCrash.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-03-01-GimplifyCrash.cpp (removed)
@@ -1,14 +0,0 @@
-// RUN: %llvmgxx -S %s -o -
-
-struct PrefMapElem {
-  virtual ~PrefMapElem(); 
-  unsigned int fPrefId;
-};
-
-int foo() {
-  PrefMapElem* fMap;
-  if (fMap[0].fPrefId == 1)
-    return 1;
-  
-  return 0;
-}

Removed: llvm/trunk/test/FrontendC++/2006-03-06-C++RecurseCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-03-06-C%2B%2BRecurseCrash.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-03-06-C++RecurseCrash.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-03-06-C++RecurseCrash.cpp (removed)
@@ -1,24 +0,0 @@
-// RUN: %llvmgcc %s -S -o -
-namespace std {
-  class exception { };
-
-  class type_info {
-  public:
-    virtual ~type_info();
-  };
-
-}
-
-namespace __cxxabiv1 {
-  class __si_class_type_info : public std::type_info {
-    ~__si_class_type_info();
-  };
-}
-
-class recursive_init: public std::exception {
-public:
-  virtual ~recursive_init() throw ();
-};
-
-recursive_init::~recursive_init() throw() { }
-

Removed: llvm/trunk/test/FrontendC++/2006-09-08-powi.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-09-08-powi.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-09-08-powi.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-09-08-powi.cpp (removed)
@@ -1,7 +0,0 @@
-// RUN: %llvmgxx -O3 -S -o - %s
-
-#include <cmath>
-
-double foo(double X, int Y) {
-  return std::pow(X, Y);
-}

Removed: llvm/trunk/test/FrontendC++/2006-09-12-OpaqueStructCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-09-12-OpaqueStructCrash.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-09-12-OpaqueStructCrash.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-09-12-OpaqueStructCrash.cpp (removed)
@@ -1,28 +0,0 @@
-// RUN: %llvmgxx -O3 -S -o - %s
-
-struct A {
-   virtual ~A();
-};
-
-template <typename Ty>
-struct B : public A {
-   ~B () { delete [] val; }
-private:
-     Ty* val;
-};
-
-template <typename Ty>
-struct C : public A {
-   C ();
-   ~C ();
-};
-
-template <typename Ty>
-struct D : public A {
-     D () {}
-   private:
-     B<C<Ty> > blocks;
-};
-
-template class D<double>;
-

Removed: llvm/trunk/test/FrontendC++/2006-09-27-Debug-Protection.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-09-27-Debug-Protection.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-09-27-Debug-Protection.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-09-27-Debug-Protection.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %llvmgxx -O0 -S -g -o - %s | grep {i32 1,}
-// RUN: %llvmgxx -O0 -S -g -o - %s | grep {i32 2,}
-class A {
-public:
-  int x;
-protected:
-  int y;
-private:
-  int z;
-};
-
-A a;

Removed: llvm/trunk/test/FrontendC++/2006-10-30-ClassBitfield.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-10-30-ClassBitfield.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-10-30-ClassBitfield.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-10-30-ClassBitfield.cpp (removed)
@@ -1,16 +0,0 @@
-// RUN: %llvmgxx %s -S -o -
-// PR954
-
-struct _Refcount_Base   {
-  unsigned long _M_ref_count;
-  int _M_ref_count_lock;
-  _Refcount_Base() : _M_ref_count(0) {}
-};
-
-struct _Rope_RopeRep : public _Refcount_Base 
-{
-public:
-  int _M_tag:8; 
-};
-
-int foo(_Rope_RopeRep* r) { return r->_M_tag; }

Removed: llvm/trunk/test/FrontendC++/2006-11-06-StackTrace.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-11-06-StackTrace.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-11-06-StackTrace.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-11-06-StackTrace.cpp (removed)
@@ -1,38 +0,0 @@
-// This is a regression test on debug info to make sure that we can get a
-// meaningful stack trace from a C++ program.
-// RUN: %llvmgcc -S -O0 -g %s -o - | \
-// RUN:    llc --disable-cfi --disable-fp-elim -o %t.s -O0 -relocation-model=pic
-// RUN: %compile_c %t.s -o %t.o
-// RUN: %link %t.o -o %t.exe
-// RUN: echo {break DeepStack::deepest\nrun 17\nwhere\n} > %t.in 
-// RN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | \
-// RN:   grep {#0  DeepStack::deepest.*(this=.*,.*x=33)}
-// RN: gdb -q -batch -n -x %t.in %t.exe | \
-// RN:   grep {#7  0x.* in main.*(argc=\[12\],.*argv=.*)}
-
-// Only works on ppc (but not apple-darwin9), x86 and x86_64.  Should
-// generalize?
-// XAIL: alpha,arm,powerpc-apple-darwin9
-
-#include <stdlib.h>
-
-class DeepStack {
-  int seedVal;
-public:
-  DeepStack(int seed) : seedVal(seed) {}
-
-  int shallowest( int x ) { return shallower(x + 1); }
-  int shallower ( int x ) { return shallow(x + 2); }
-  int shallow   ( int x ) { return deep(x + 3); }
-  int deep      ( int x ) { return deeper(x + 4); }
-  int deeper    ( int x ) { return deepest(x + 6); }
-  int deepest   ( int x ) { return x + 7; }
-
-  int runit() { return shallowest(seedVal); }
-};
-
-int main ( int argc, char** argv) {
-
-  DeepStack DS9( (argc > 1 ? atoi(argv[1]) : 0) );
-  return DS9.runit();
-}

Removed: llvm/trunk/test/FrontendC++/2006-11-20-GlobalSymbols.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-11-20-GlobalSymbols.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-11-20-GlobalSymbols.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-11-20-GlobalSymbols.cpp (removed)
@@ -1,10 +0,0 @@
-// PR1013
-// Check to make sure debug symbols use the correct name for globals and
-// functions.  Will not assemble if it fails to.
-// RUN: %llvmgcc_only -O0 -g -c %s
-
-int foo __asm__("f\001oo");
-
-int bar() {
-  return foo;
-}

Removed: llvm/trunk/test/FrontendC++/2006-11-30-ConstantExprCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2006-11-30-ConstantExprCrash.cpp?rev=138148&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2006-11-30-ConstantExprCrash.cpp (original)
+++ llvm/trunk/test/FrontendC++/2006-11-30-ConstantExprCrash.cpp (removed)
@@ -1,27 +0,0 @@
-// RUN: %llvmgxx %s -S -o -
-// PR1027
-
-struct sys_var {
-  unsigned name_length;
-
-  bool no_support_one_shot;
-  sys_var() {}
-};
-
-
-struct sys_var_thd : public sys_var {
-};
-
-extern sys_var_thd sys_auto_is_null;
-
-sys_var *getsys_variables() {
-  return &sys_auto_is_null;
-}
-
-sys_var *sys_variables = &sys_auto_is_null;
-
-
-
-
-
-





More information about the llvm-commits mailing list