[llvm-commits] [llvm] r125189 - /llvm/trunk/test/FrontendC++/
Chris Lattner
sabre at nondot.org
Wed Feb 9 08:41:31 PST 2011
Author: lattner
Date: Wed Feb 9 10:41:31 2011
New Revision: 125189
URL: http://llvm.org/viewvc/llvm-project?rev=125189&view=rev
Log:
remove a small scattering of basically pointless tests. These are
all covered by llvm-test, which is what they were reduced from back
in 2003.
Removed:
llvm/trunk/test/FrontendC++/2003-08-20-ExceptionFail.cpp
llvm/trunk/test/FrontendC++/2003-08-21-EmptyClass.cpp
llvm/trunk/test/FrontendC++/2003-08-27-TypeNamespaces.cpp
llvm/trunk/test/FrontendC++/2003-08-28-ForwardType.cpp
llvm/trunk/test/FrontendC++/2003-08-28-SaveExprBug.cpp
llvm/trunk/test/FrontendC++/2003-08-29-ArgPassingBug.cpp
llvm/trunk/test/FrontendC++/2003-08-31-StructLayout.cpp
llvm/trunk/test/FrontendC++/2003-09-22-CompositeExprValue.cpp
llvm/trunk/test/FrontendC++/2003-09-29-ArgumentNumberMismatch.cpp
llvm/trunk/test/FrontendC++/2003-09-30-CommaExprBug.cpp
llvm/trunk/test/FrontendC++/2003-09-30-ForIncrementExprBug.cpp
llvm/trunk/test/FrontendC++/2003-09-30-ForIncrementExprBug2.cpp
llvm/trunk/test/FrontendC++/2003-09-30-NestedFunctionDecl.cpp
llvm/trunk/test/FrontendC++/2003-10-17-BoolBitfields.cpp
llvm/trunk/test/FrontendC++/2003-10-27-VirtualBaseClassCrash.cpp
llvm/trunk/test/FrontendC++/2003-11-04-ArrayConstructors.cpp
llvm/trunk/test/FrontendC++/2003-11-04-CatchLabelName.cpp
llvm/trunk/test/FrontendC++/2003-11-08-ArrayAddress.cpp
llvm/trunk/test/FrontendC++/2003-11-18-EnumArray.cpp
Removed: llvm/trunk/test/FrontendC++/2003-08-20-ExceptionFail.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-08-20-ExceptionFail.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-08-20-ExceptionFail.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-08-20-ExceptionFail.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-void foo();
-
-void bar() {
- struct local {
- ~local() { foo(); }
- } local_obj;
-
- foo();
-}
-
Removed: llvm/trunk/test/FrontendC++/2003-08-21-EmptyClass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-08-21-EmptyClass.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-08-21-EmptyClass.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-08-21-EmptyClass.cpp (removed)
@@ -1,9 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-// This tests compilation of EMPTY_CLASS_EXPR's
-
-struct empty {};
-
-void foo(empty) {}
-
-void bar() { foo(empty()); }
Removed: llvm/trunk/test/FrontendC++/2003-08-27-TypeNamespaces.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-08-27-TypeNamespaces.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-08-27-TypeNamespaces.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-08-27-TypeNamespaces.cpp (removed)
@@ -1,16 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-
-namespace foo {
- namespace bar {
- struct X { X(); };
-
- X::X() {}
- }
-}
-
-
-namespace {
- struct Y { Y(); };
- Y::Y() {}
-}
Removed: llvm/trunk/test/FrontendC++/2003-08-28-ForwardType.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-08-28-ForwardType.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-08-28-ForwardType.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-08-28-ForwardType.cpp (removed)
@@ -1,23 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-// Default placement versions of operator new.
-#include <new>
-
-void* operator new(size_t, void* __p) throw();
-
-
-template<typename _CharT>
-struct stdio_filebuf
-{ stdio_filebuf();
-
-};
-
-extern stdio_filebuf<char> buf_cout;
-
-void foo() {
- // Create stream buffers for the standard streams and use
- // those buffers without destroying and recreating the
- // streams.
- new (&buf_cout) stdio_filebuf<char>();
-
-}
Removed: llvm/trunk/test/FrontendC++/2003-08-28-SaveExprBug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-08-28-SaveExprBug.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-08-28-SaveExprBug.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-08-28-SaveExprBug.cpp (removed)
@@ -1,24 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-
-char* eback();
-
-template<typename foo>
-struct basic_filebuf {
- char *instancevar;
-
- void callee() {
- instancevar += eback() != eback();
- }
-
- void caller();
-};
-
-
-template<typename _CharT>
-void basic_filebuf<_CharT>::caller() {
- callee();
-}
-
-
-template class basic_filebuf<char>;
Removed: llvm/trunk/test/FrontendC++/2003-08-29-ArgPassingBug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-08-29-ArgPassingBug.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-08-29-ArgPassingBug.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-08-29-ArgPassingBug.cpp (removed)
@@ -1,13 +0,0 @@
-
-// RUN: %llvmgcc -xc++ -S -o /dev/null %s |& not grep WARNING
-
-struct iterator {
- iterator();
- iterator(const iterator &I);
-};
-
-iterator foo(const iterator &I) { return I; }
-
-void test() {
- foo(iterator());
-}
Removed: llvm/trunk/test/FrontendC++/2003-08-31-StructLayout.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-08-31-StructLayout.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-08-31-StructLayout.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-08-31-StructLayout.cpp (removed)
@@ -1,16 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-// There is a HOLE in the derived2 object due to not wanting to place the two
-// baseclass instances at the same offset!
-
-struct baseclass {};
-
-class derived1 : public baseclass {
- void * NodePtr;
-};
-
-class derived2 : public baseclass {
- derived1 current;
-};
-
-derived2 RI;
Removed: llvm/trunk/test/FrontendC++/2003-09-22-CompositeExprValue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-09-22-CompositeExprValue.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-09-22-CompositeExprValue.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-09-22-CompositeExprValue.cpp (removed)
@@ -1,11 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-struct duration {
- duration operator/=(int c) {
- return *this;
- }
-};
-
-void a000090() {
- duration() /= 1;
-}
Removed: llvm/trunk/test/FrontendC++/2003-09-29-ArgumentNumberMismatch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-09-29-ArgumentNumberMismatch.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-09-29-ArgumentNumberMismatch.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-09-29-ArgumentNumberMismatch.cpp (removed)
@@ -1,17 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-// Non-POD classes cannot be passed into a function by component, because their
-// dtors must be run. Instead, pass them in by reference. The C++ front-end
-// was mistakenly "thinking" that 'foo' took a structure by component.
-
-struct C {
- int A, B;
- ~C() {}
-};
-
-void foo(C b);
-
-void test(C *P) {
- foo(*P);
-}
-
Removed: llvm/trunk/test/FrontendC++/2003-09-30-CommaExprBug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-09-30-CommaExprBug.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-09-30-CommaExprBug.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-09-30-CommaExprBug.cpp (removed)
@@ -1,10 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-class Empty {};
-
-void foo(Empty E);
-
-void bar() {
- foo(Empty());
-}
-
Removed: llvm/trunk/test/FrontendC++/2003-09-30-ForIncrementExprBug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-09-30-ForIncrementExprBug.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-09-30-ForIncrementExprBug.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-09-30-ForIncrementExprBug.cpp (removed)
@@ -1,10 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-struct C {};
-
-C &foo();
-
-void foox() {
- for (; ; foo());
-}
-
Removed: llvm/trunk/test/FrontendC++/2003-09-30-ForIncrementExprBug2.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-09-30-ForIncrementExprBug2.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-09-30-ForIncrementExprBug2.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-09-30-ForIncrementExprBug2.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-// Test with an opaque type
-
-struct C;
-
-C &foo();
-
-void foox() {
- for (; ; foo());
-}
-
Removed: llvm/trunk/test/FrontendC++/2003-09-30-NestedFunctionDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-09-30-NestedFunctionDecl.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-09-30-NestedFunctionDecl.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-09-30-NestedFunctionDecl.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-// The C++ front-end thinks the two foo's are different, the LLVM emitter
-// thinks they are the same. The disconnect causes problems.
-
-void foo() { }
-
-void bar() {
- void foo();
-
- foo();
-}
Removed: llvm/trunk/test/FrontendC++/2003-10-17-BoolBitfields.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-10-17-BoolBitfields.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-10-17-BoolBitfields.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-10-17-BoolBitfields.cpp (removed)
@@ -1,11 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-struct test {
- bool A : 1;
- bool B : 1;
-};
-
-void foo(test *T) {
- T->B = true;
-}
-
Removed: llvm/trunk/test/FrontendC++/2003-10-27-VirtualBaseClassCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-10-27-VirtualBaseClassCrash.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-10-27-VirtualBaseClassCrash.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-10-27-VirtualBaseClassCrash.cpp (removed)
@@ -1,17 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-
-template<class T>
-struct super {
- int Y;
- void foo();
-};
-
-template <class T>
-struct test : virtual super<int> {};
-
-extern test<int> X;
-
-void foo() {
- X.foo();
-}
Removed: llvm/trunk/test/FrontendC++/2003-11-04-ArrayConstructors.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-11-04-ArrayConstructors.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-11-04-ArrayConstructors.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-11-04-ArrayConstructors.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-
-struct Foo {
- Foo(int);
- ~Foo();
-};
-void foo() {
- struct {
- Foo name;
- } Int[] = { 1 };
-}
Removed: llvm/trunk/test/FrontendC++/2003-11-04-CatchLabelName.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-11-04-CatchLabelName.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-11-04-CatchLabelName.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-11-04-CatchLabelName.cpp (removed)
@@ -1,11 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-#include <string>
-
-void bar();
-
-void test() {
- try {
- bar();
- } catch (std::string) {}
-}
Removed: llvm/trunk/test/FrontendC++/2003-11-08-ArrayAddress.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-11-08-ArrayAddress.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-11-08-ArrayAddress.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-11-08-ArrayAddress.cpp (removed)
@@ -1,10 +0,0 @@
-// RUN: %llvmgxx -xc++ %s -S -o - | grep getelementptr
-
-struct foo {
- int array[100];
- void *getAddr(unsigned i);
-};
-
-void *foo::getAddr(unsigned i) {
- return &array[i];
-}
Removed: llvm/trunk/test/FrontendC++/2003-11-18-EnumArray.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2003-11-18-EnumArray.cpp?rev=125188&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2003-11-18-EnumArray.cpp (original)
+++ llvm/trunk/test/FrontendC++/2003-11-18-EnumArray.cpp (removed)
@@ -1,14 +0,0 @@
-// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
-
-enum TchkType {
- tchkNum, tchkString, tchkSCN, tchkNone
-};
-
-struct Operator {
- enum TchkType tchk[8];
-};
-
-struct Operator opTab[] = {
- {{tchkNum, tchkNum, tchkString} }
-};
-
More information about the llvm-commits
mailing list