[llvm-commits] [dragonegg] r153198 - /dragonegg/trunk/test/compilator/local/c++/
Duncan Sands
baldrick at free.fr
Wed Mar 21 09:36:30 PDT 2012
Author: baldrick
Date: Wed Mar 21 11:36:29 2012
New Revision: 153198
URL: http://llvm.org/viewvc/llvm-project?rev=153198&view=rev
Log:
These tests are also in the clang testsuite, which the compilator compiles,
so there is no point in having a local copy of them.
Removed:
dragonegg/trunk/test/compilator/local/c++/2003-11-18-PtrMemConstantInitializer.cpp
dragonegg/trunk/test/compilator/local/c++/2003-11-27-MultipleInheritanceThunk.cpp
dragonegg/trunk/test/compilator/local/c++/2003-11-29-DuplicatedCleanupTest.cpp
dragonegg/trunk/test/compilator/local/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp
dragonegg/trunk/test/compilator/local/c++/2004-03-08-ReinterpretCastCopy.cpp
dragonegg/trunk/test/compilator/local/c++/2004-03-15-CleanupsAndGotos.cpp
dragonegg/trunk/test/compilator/local/c++/2004-06-08-LateTemplateInstantiation.cpp
dragonegg/trunk/test/compilator/local/c++/2004-11-27-ExceptionCleanupAssertion.cpp
dragonegg/trunk/test/compilator/local/c++/2004-11-27-FriendDefaultArgCrash.cpp
dragonegg/trunk/test/compilator/local/c++/2005-02-11-AnonymousUnion.cpp
dragonegg/trunk/test/compilator/local/c++/2005-02-19-BitfieldStructCrash.cpp
dragonegg/trunk/test/compilator/local/c++/2005-02-19-UnnamedVirtualThunkArgument.cpp
dragonegg/trunk/test/compilator/local/c++/2005-02-20-BrokenReferenceTest.cpp
dragonegg/trunk/test/compilator/local/c++/2006-03-01-GimplifyCrash.cpp
dragonegg/trunk/test/compilator/local/c++/2006-03-06-C++RecurseCrash.cpp
dragonegg/trunk/test/compilator/local/c++/2006-09-12-OpaqueStructCrash.cpp
dragonegg/trunk/test/compilator/local/c++/2006-10-30-ClassBitfield.cpp
dragonegg/trunk/test/compilator/local/c++/2006-11-30-ConstantExprCrash.cpp
dragonegg/trunk/test/compilator/local/c++/2007-01-02-UnboundedArray.cpp
dragonegg/trunk/test/compilator/local/c++/2007-01-06-PtrMethodInit.cpp
dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFields-1.cpp
dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp
dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap.cpp
dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsSmall.cpp
dragonegg/trunk/test/compilator/local/c++/2007-04-05-StructPackedFieldUnpacked.cpp
dragonegg/trunk/test/compilator/local/c++/2007-04-10-PackedUnion.cpp
dragonegg/trunk/test/compilator/local/c++/2007-05-03-VectorInit.cpp
dragonegg/trunk/test/compilator/local/c++/2007-09-10-RecursiveTypeResolution.cpp
dragonegg/trunk/test/compilator/local/c++/2007-10-01-StructResize.cpp
dragonegg/trunk/test/compilator/local/c++/2008-01-12-VecInit.cpp
dragonegg/trunk/test/compilator/local/c++/2008-05-07-CrazyOffsetOf.cpp
dragonegg/trunk/test/compilator/local/c++/2009-03-17-dbg.cpp
dragonegg/trunk/test/compilator/local/c++/2009-04-23-bool2.cpp
dragonegg/trunk/test/compilator/local/c++/2009-06-16-DebugInfoCrash.cpp
dragonegg/trunk/test/compilator/local/c++/2009-07-16-Using.cpp
dragonegg/trunk/test/compilator/local/c++/2009-08-05-ZeroInitWidth.cpp
dragonegg/trunk/test/compilator/local/c++/2009-08-11-VectorRetTy.cpp
dragonegg/trunk/test/compilator/local/c++/2009-10-27-crash.cpp
dragonegg/trunk/test/compilator/local/c++/2010-05-10-Var-DbgInfo.cpp
dragonegg/trunk/test/compilator/local/c++/2010-06-22-BitfieldInit.cpp
dragonegg/trunk/test/compilator/local/c++/2010-06-22-ZeroBitfield.cpp
Removed: dragonegg/trunk/test/compilator/local/c++/2003-11-18-PtrMemConstantInitializer.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-18-PtrMemConstantInitializer.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2003-11-18-PtrMemConstantInitializer.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-11-18-PtrMemConstantInitializer.cpp (removed)
@@ -1,12 +0,0 @@
-struct Gfx {
- void opMoveSetShowText();
-};
-
-struct Operator {
- void (Gfx::*func)();
-};
-
-Operator opTab[] = {
- {&Gfx::opMoveSetShowText},
-};
-
Removed: dragonegg/trunk/test/compilator/local/c++/2003-11-27-MultipleInheritanceThunk.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-27-MultipleInheritanceThunk.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2003-11-27-MultipleInheritanceThunk.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-11-27-MultipleInheritanceThunk.cpp (removed)
@@ -1,25 +0,0 @@
-struct CallSite {
- int X;
-
- CallSite(const CallSite &CS);
-};
-
-struct AliasAnalysis {
- int TD;
-
- virtual int getModRefInfo(CallSite CS);
-};
-
-
-struct Pass {
- int X;
- virtual int foo();
-};
-
-struct AliasAnalysisCounter : public Pass, public AliasAnalysis {
- int getModRefInfo(CallSite CS) {
- return 0;
- }
-};
-
-AliasAnalysisCounter AAC;
Removed: dragonegg/trunk/test/compilator/local/c++/2003-11-29-DuplicatedCleanupTest.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-11-29-DuplicatedCleanupTest.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2003-11-29-DuplicatedCleanupTest.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-11-29-DuplicatedCleanupTest.cpp (removed)
@@ -1,38 +0,0 @@
-void doesntThrow() throw();
-struct F {
- ~F() { doesntThrow(); }
-};
-
-void atest() {
- F A;
-lab:
- F B;
- goto lab;
-}
-
-void test(int val) {
-label: {
- F A;
- F B;
- if (val == 0) goto label;
- if (val == 1) goto label;
-}
-}
-
-void test3(int val) {
-label: {
- F A;
- F B;
- if (val == 0) { doesntThrow(); goto label; }
- if (val == 1) { doesntThrow(); goto label; }
-}
-}
-
-void test4(int val) {
-label: {
- F A;
- F B;
- if (val == 0) { F C; goto label; }
- if (val == 1) { F D; goto label; }
-}
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2003-12-08-ArrayOfPtrToMemberFunc.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2003-12-08-ArrayOfPtrToMemberFunc.cpp (removed)
@@ -1,10 +0,0 @@
-struct Evil {
- void fun ();
-};
-int foo();
-typedef void (Evil::*memfunptr) ();
-static memfunptr jumpTable[] = { &Evil::fun };
-
-void Evil::fun() {
- (this->*jumpTable[foo()]) ();
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2004-03-08-ReinterpretCastCopy.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-03-08-ReinterpretCastCopy.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2004-03-08-ReinterpretCastCopy.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-03-08-ReinterpretCastCopy.cpp (removed)
@@ -1,19 +0,0 @@
-struct A {
- virtual void Method() = 0;
-};
-
-struct B : public A {
- virtual void Method() { }
-};
-
-typedef void (A::*fn_type_a)(void);
-typedef void (B::*fn_type_b)(void);
-
-int main(int argc, char **argv)
-{
- fn_type_a f = reinterpret_cast<fn_type_a>(&B::Method);
- fn_type_b g = reinterpret_cast<fn_type_b>(f);
- B b;
- (b.*g)();
- return 0;
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2004-03-15-CleanupsAndGotos.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-03-15-CleanupsAndGotos.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2004-03-15-CleanupsAndGotos.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-03-15-CleanupsAndGotos.cpp (removed)
@@ -1,12 +0,0 @@
-// Testcase from Bug 291
-
-struct X {
- ~X();
-};
-
-void foo() {
- X v;
-
-TryAgain:
- goto TryAgain;
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2004-06-08-LateTemplateInstantiation.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-06-08-LateTemplateInstantiation.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2004-06-08-LateTemplateInstantiation.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-06-08-LateTemplateInstantiation.cpp (removed)
@@ -1,15 +0,0 @@
-template<typename Ty>
-struct normal_iterator {
- int FIELD;
-};
-
-void foo(normal_iterator<int>);
-normal_iterator<int> baz();
-
-void bar() {
- foo(baz());
-}
-
-void *bar2() {
- return (void*)foo;
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2004-11-27-ExceptionCleanupAssertion.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-11-27-ExceptionCleanupAssertion.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2004-11-27-ExceptionCleanupAssertion.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-11-27-ExceptionCleanupAssertion.cpp (removed)
@@ -1,12 +0,0 @@
-// This is PR421
-
-struct Strongbad {
- Strongbad(const char *str );
- ~Strongbad();
- operator const char *() const;
-};
-
-void TheCheat () {
- Strongbad foo(0);
- Strongbad dirs[] = { Strongbad(0) + 1};
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2004-11-27-FriendDefaultArgCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2004-11-27-FriendDefaultArgCrash.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2004-11-27-FriendDefaultArgCrash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2004-11-27-FriendDefaultArgCrash.cpp (removed)
@@ -1,7 +0,0 @@
-// PR447
-
-namespace nm {
- struct str {
- friend int foo(int arg = 0);
- };
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2005-02-11-AnonymousUnion.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2005-02-11-AnonymousUnion.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2005-02-11-AnonymousUnion.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2005-02-11-AnonymousUnion.cpp (removed)
@@ -1,30 +0,0 @@
-// 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: dragonegg/trunk/test/compilator/local/c++/2005-02-19-BitfieldStructCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2005-02-19-BitfieldStructCrash.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2005-02-19-BitfieldStructCrash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2005-02-19-BitfieldStructCrash.cpp (removed)
@@ -1,12 +0,0 @@
-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: dragonegg/trunk/test/compilator/local/c++/2005-02-19-UnnamedVirtualThunkArgument.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2005-02-19-UnnamedVirtualThunkArgument.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2005-02-19-UnnamedVirtualThunkArgument.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2005-02-19-UnnamedVirtualThunkArgument.cpp (removed)
@@ -1,20 +0,0 @@
-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: dragonegg/trunk/test/compilator/local/c++/2005-02-20-BrokenReferenceTest.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2005-02-20-BrokenReferenceTest.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2005-02-20-BrokenReferenceTest.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2005-02-20-BrokenReferenceTest.cpp (removed)
@@ -1,9 +0,0 @@
-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: dragonegg/trunk/test/compilator/local/c++/2006-03-01-GimplifyCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2006-03-01-GimplifyCrash.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2006-03-01-GimplifyCrash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2006-03-01-GimplifyCrash.cpp (removed)
@@ -1,12 +0,0 @@
-struct PrefMapElem {
- virtual ~PrefMapElem();
- unsigned int fPrefId;
-};
-
-int foo() {
- PrefMapElem* fMap;
- if (fMap[0].fPrefId == 1)
- return 1;
-
- return 0;
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2006-03-06-C++RecurseCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2006-03-06-C%2B%2BRecurseCrash.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2006-03-06-C++RecurseCrash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2006-03-06-C++RecurseCrash.cpp (removed)
@@ -1,23 +0,0 @@
-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: dragonegg/trunk/test/compilator/local/c++/2006-09-12-OpaqueStructCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2006-09-12-OpaqueStructCrash.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2006-09-12-OpaqueStructCrash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2006-09-12-OpaqueStructCrash.cpp (removed)
@@ -1,26 +0,0 @@
-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: dragonegg/trunk/test/compilator/local/c++/2006-10-30-ClassBitfield.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2006-10-30-ClassBitfield.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2006-10-30-ClassBitfield.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2006-10-30-ClassBitfield.cpp (removed)
@@ -1,15 +0,0 @@
-// 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: dragonegg/trunk/test/compilator/local/c++/2006-11-30-ConstantExprCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2006-11-30-ConstantExprCrash.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2006-11-30-ConstantExprCrash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2006-11-30-ConstantExprCrash.cpp (removed)
@@ -1,26 +0,0 @@
-// 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;
-
-
-
-
-
-
Removed: dragonegg/trunk/test/compilator/local/c++/2007-01-02-UnboundedArray.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-01-02-UnboundedArray.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-01-02-UnboundedArray.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-01-02-UnboundedArray.cpp (removed)
@@ -1,12 +0,0 @@
-// Make sure unbounded arrays compile with debug information.
-
-// PR1068
-
-struct Object {
- char buffer[];
-};
-
-int main(int argc, char** argv) {
- new Object;
- return 0;
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2007-01-06-PtrMethodInit.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-01-06-PtrMethodInit.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-01-06-PtrMethodInit.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-01-06-PtrMethodInit.cpp (removed)
@@ -1,74 +0,0 @@
-// PR1084
-
-extern "C"
-{
- typedef unsigned char PRUint8;
- typedef unsigned int PRUint32;
-}
-typedef PRUint32 nsresult;
-struct nsID
-{
-};
-typedef nsID nsIID;
-class nsISupports
-{
-};
-extern "C++"
-{
- template < class T > struct nsCOMTypeInfo
- {
- static const nsIID & GetIID ()
- {
- }
- };
-}
-
-class nsIDOMEvent:public nsISupports
-{
-};
-class nsIDOMEventListener:public nsISupports
-{
-public:static const nsIID & GetIID ()
- {
- }
- virtual nsresult
- __attribute__ ((regparm (0), cdecl)) HandleEvent (nsIDOMEvent * event) =
- 0;
-};
-class nsIDOMMouseListener:public nsIDOMEventListener
-{
-public:static const nsIID & GetIID ()
- {
- static const nsIID iid = {
- };
- }
- virtual nsresult
- __attribute__ ((regparm (0),
- cdecl)) MouseDown (nsIDOMEvent * aMouseEvent) = 0;
-};
-typedef
-typeof (&nsIDOMEventListener::HandleEvent)
- GenericHandler;
- struct EventDispatchData
- {
- PRUint32 message;
- GenericHandler method;
- PRUint8 bits;
- };
- struct EventTypeData
- {
- const EventDispatchData *events;
- int numEvents;
- const nsIID *iid;
- };
- static const EventDispatchData sMouseEvents[] = {
- {
- (300 + 2),
- reinterpret_cast < GenericHandler > (&nsIDOMMouseListener::MouseDown),
- 0x01}
- };
-static const EventTypeData sEventTypes[] = {
- {
- sMouseEvents, (sizeof (sMouseEvents) / sizeof (sMouseEvents[0])),
- &nsCOMTypeInfo < nsIDOMMouseListener >::GetIID ()}
-};
Removed: dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFields-1.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFields-1.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFields-1.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFields-1.cpp (removed)
@@ -1,21 +0,0 @@
-#ifdef PACKED
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct P M_Packed {
- unsigned int l_Packed;
- unsigned short k_Packed : 6,
- i_Packed : 15,
- j_Packed : 11;
-
-};
-
-struct M_Packed sM_Packed;
-
-int testM_Packed (void) {
- struct M_Packed x;
- return (x.i_Packed != 0);
-}
-
Removed: dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsOverlap-2.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap-2.cpp (removed)
@@ -1,22 +0,0 @@
-#ifdef PACKED
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct P M_Packed {
- unsigned long sorted : 1;
- unsigned long from_array : 1;
- unsigned long mixed_encoding : 1;
- unsigned long encoding : 8;
- unsigned long count : 21;
-
-};
-
-struct M_Packed sM_Packed;
-
-int testM_Packed (void) {
- struct M_Packed x;
- return (x.count != 0);
-}
-
Removed: dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsOverlap.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsOverlap.cpp (removed)
@@ -1,21 +0,0 @@
-#ifdef PACKED
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct P M_Packed {
- unsigned int l_Packed;
- unsigned short k_Packed : 6,
- i_Packed : 15;
- char c;
-
-};
-
-struct M_Packed sM_Packed;
-
-int testM_Packed (void) {
- struct M_Packed x;
- return (x.i_Packed != 0);
-}
-
Removed: dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsSmall.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-PackedBitFieldsSmall.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsSmall.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-PackedBitFieldsSmall.cpp (removed)
@@ -1,24 +0,0 @@
-#ifdef PACKED
-// This is an example where size of Packed struct is smaller then
-// the size of bit field type.
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct P M_Packed {
- unsigned long long X:50;
- unsigned Y:2;
-};
-
-struct M_Packed sM_Packed;
-
-int testM_Packed (void) {
- struct M_Packed x;
- return (0 != x.Y);
-}
-
-int testM_Packed2 (void) {
- struct M_Packed x;
- return (0 != x.X);
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2007-04-05-StructPackedFieldUnpacked.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-05-StructPackedFieldUnpacked.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-04-05-StructPackedFieldUnpacked.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-05-StructPackedFieldUnpacked.cpp (removed)
@@ -1,23 +0,0 @@
-#ifdef PACKED
-#define P __attribute__((packed))
-#else
-#define P
-#endif
-
-struct UnPacked {
- int X;
- int Y;
-};
-
-struct P M_Packed {
- unsigned char A;
- struct UnPacked B;
-};
-
-struct M_Packed sM_Packed;
-
-int testM_Packed (void) {
- struct M_Packed x;
- return (x.B.Y != 0);
-}
-
Removed: dragonegg/trunk/test/compilator/local/c++/2007-04-10-PackedUnion.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-04-10-PackedUnion.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-04-10-PackedUnion.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-04-10-PackedUnion.cpp (removed)
@@ -1,40 +0,0 @@
-extern "C" {
-
-#pragma pack(push, 2)
- typedef struct ABC* abc;
-
- struct ABCS {
- float red;
- float green;
- float blue;
- float alpha;
- };
-
- typedef void (*XYZ)();
-#pragma pack(pop)
-}
-
-
-union ABCU {
- ABCS color;
- XYZ bg;
-};
-
-struct AData {
- ABCU data;
-};
-
-class L {
- public:
- L() {}
- L(const L& other);
-
- private:
- AData fdata;
-};
-
-
-L::L(const L& other)
-{
- fdata = other.fdata;
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2007-05-03-VectorInit.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-05-03-VectorInit.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-05-03-VectorInit.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-05-03-VectorInit.cpp (removed)
@@ -1,16 +0,0 @@
-// PR1378
-
-typedef float v4sf __attribute__((vector_size(16)));
-
-typedef v4sf float4;
-
-static float4 splat4(float a)
-{
- float4 tmp = {a,a,a,a};
- return tmp;
-}
-
-float4 foo(float a)
-{
- return splat4(a);
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2007-09-10-RecursiveTypeResolution.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-09-10-RecursiveTypeResolution.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-09-10-RecursiveTypeResolution.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-09-10-RecursiveTypeResolution.cpp (removed)
@@ -1,87 +0,0 @@
-// PR1634
-
-namespace Manta
-{
- class CallbackHandle
- {
- protected:virtual ~ CallbackHandle (void)
- {
- }
- };
-template < typename Data1 > class CallbackBase_1Data:public CallbackHandle
- {
- };
-}
-
-namespace __gnu_cxx
-{
- template < typename _Iterator, typename _Container >
- class __normal_iterator
- {
- _Iterator _M_current;
- };
-}
-
-namespace std
-{
- template < typename _Tp > struct allocator
- {
- typedef _Tp *pointer;
- };
- template < typename _InputIterator,
- typename _Tp > inline void find (_InputIterator __last,
- const _Tp & __val)
- {
- };
-}
-
-namespace Manta
-{
- template < typename _Tp, typename _Alloc> struct _Vector_base
- {
- struct _Vector_impl
- {
- _Tp *_M_start;
- };
- public:
- _Vector_impl _M_impl;
- };
- template < typename _Tp, typename _Alloc = std::allocator < _Tp > >
- class vector:protected _Vector_base < _Tp,_Alloc >
- {
- public:
- typedef __gnu_cxx::__normal_iterator < typename _Alloc::pointer,
- vector < _Tp, _Alloc > > iterator;
- iterator end ()
- {
- }
- };
- class MantaInterface
- {
- };
- class RTRT
- {
- virtual CallbackHandle *registerTerminationCallback (CallbackBase_1Data <
- MantaInterface * >*);
- virtual void unregisterCallback (CallbackHandle *);
- typedef vector < CallbackBase_1Data < int >*>PRCallbackMapType;
- PRCallbackMapType parallelPreRenderCallbacks;
- };
-}
-using namespace Manta;
-CallbackHandle *
-RTRT::registerTerminationCallback (CallbackBase_1Data < MantaInterface * >*cb)
-{
- return cb;
-}
-
-void
-RTRT::unregisterCallback (CallbackHandle * callback)
-{
- {
- typedef CallbackBase_1Data < int > callback_t;
- callback_t *cb = static_cast < callback_t * >(callback);
- find (parallelPreRenderCallbacks.end (), cb);
- }
-}
-
Removed: dragonegg/trunk/test/compilator/local/c++/2007-10-01-StructResize.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2007-10-01-StructResize.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2007-10-01-StructResize.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2007-10-01-StructResize.cpp (removed)
@@ -1,12 +0,0 @@
-#pragma pack(4)
-
-struct Bork {
- unsigned int f1 : 3;
- unsigned int f2 : 30;
-};
-
-int Foo(Bork *hdr) {
- hdr->f1 = 7;
- hdr->f2 = 927;
-}
-
Removed: dragonegg/trunk/test/compilator/local/c++/2008-01-12-VecInit.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2008-01-12-VecInit.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2008-01-12-VecInit.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2008-01-12-VecInit.cpp (removed)
@@ -1,5 +0,0 @@
-// rdar://5685492
-
-typedef int __attribute__((vector_size(16))) v;
-v vt = {1, 2, 3, 4};
-
Removed: dragonegg/trunk/test/compilator/local/c++/2008-05-07-CrazyOffsetOf.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2008-05-07-CrazyOffsetOf.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2008-05-07-CrazyOffsetOf.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2008-05-07-CrazyOffsetOf.cpp (removed)
@@ -1,7 +0,0 @@
-// rdar://5914926
-
-struct bork {
- struct bork *next_local;
- char * query;
-};
-int offset = (char *) &(((struct bork *) 0x10)->query) - (char *) 0x10;
Removed: dragonegg/trunk/test/compilator/local/c++/2009-03-17-dbg.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2009-03-17-dbg.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2009-03-17-dbg.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2009-03-17-dbg.cpp (removed)
@@ -1,13 +0,0 @@
-template <typename T1,typename T2>
-inline void f(const T1&,const T2&) { }
-
-template <typename T1,typename T2,void F(const T1&,const T2&)>
-struct A {
- template <typename T> void g(T& i) { }
-};
-
-int main() {
- int i;
- A<int,int,f> a;
- a.g(i);
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2009-04-23-bool2.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2009-04-23-bool2.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2009-04-23-bool2.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2009-04-23-bool2.cpp (removed)
@@ -1,14 +0,0 @@
-// g++.old-deja/g++.jason/bool2.C from gcc testsuite.
-// Crashed before 67975 went in.
-struct F {
- bool b1 : 1;
- bool b2 : 7;
-};
-
-int main()
-{
- F f = { true, true };
-
- if (int (f.b1) != 1)
- return 1;
-}
Removed: dragonegg/trunk/test/compilator/local/c++/2009-06-16-DebugInfoCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2009-06-16-DebugInfoCrash.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2009-06-16-DebugInfoCrash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2009-06-16-DebugInfoCrash.cpp (removed)
@@ -1,9 +0,0 @@
-// This crashes if we try to emit debug info for TEMPLATE_DECL members.
-template <class T> class K2PtrVectorBase {};
-template <class T> class K2Vector {};
-template <class U > class K2Vector<U*> : public K2PtrVectorBase<U*> {};
-class ScriptInfoManager {
- void PostRegister() ;
- template <class SI> short ReplaceExistingElement(K2Vector<SI*>& v);
-};
-void ScriptInfoManager::PostRegister() {}
Removed: dragonegg/trunk/test/compilator/local/c++/2009-07-16-Using.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2009-07-16-Using.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2009-07-16-Using.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2009-07-16-Using.cpp (removed)
@@ -1,6 +0,0 @@
-namespace A {
- typedef int B;
-}
-struct B {
-};
-using ::A::B;
Removed: dragonegg/trunk/test/compilator/local/c++/2009-08-05-ZeroInitWidth.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2009-08-05-ZeroInitWidth.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2009-08-05-ZeroInitWidth.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2009-08-05-ZeroInitWidth.cpp (removed)
@@ -1,11 +0,0 @@
-// rdar://7114564
-struct A {
- unsigned long long : (sizeof(unsigned long long) * 8) - 16;
-};
-struct B {
- A a;
-};
-struct B b = {
- {}
-};
-
Removed: dragonegg/trunk/test/compilator/local/c++/2009-08-11-VectorRetTy.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2009-08-11-VectorRetTy.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2009-08-11-VectorRetTy.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2009-08-11-VectorRetTy.cpp (removed)
@@ -1,12 +0,0 @@
-// <rdar://problem/7096460>
-typedef void (*Func) ();
-typedef long long m64 __attribute__((__vector_size__(8), __may_alias__));
-static inline m64 __attribute__((__always_inline__, __nodebug__)) _mm_set1_pi16() {}
-template <class MM>
-static void Bork() {
- const m64 mmx_0x00ff = _mm_set1_pi16();
-}
-struct A {};
-Func arr[] = {
- Bork<A>
-};
Removed: dragonegg/trunk/test/compilator/local/c++/2009-10-27-crash.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2009-10-27-crash.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2009-10-27-crash.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2009-10-27-crash.cpp (removed)
@@ -1,42 +0,0 @@
-// Radar 7328944
-
-typedef struct
-{
- unsigned short a : 1;
- unsigned short b : 2;
- unsigned short c : 1;
- unsigned short d : 1;
- unsigned short e : 1;
- unsigned short f : 1;
- unsigned short g : 2;
- unsigned short : 7;
- union
- {
- struct
- {
- unsigned char h : 1;
- unsigned char i : 1;
- unsigned char j : 1;
- unsigned char : 5;
- };
- struct
- {
- unsigned char k : 3;
- unsigned char : 5;
- };
- };
- unsigned char : 8;
-} tt;
-
-typedef struct
-{
- unsigned char s;
- tt t;
- unsigned int u;
-} ttt;
-
-ttt X = {
- 4,
- { 0 },
- 55,
-};
Removed: dragonegg/trunk/test/compilator/local/c++/2010-05-10-Var-DbgInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2010-05-10-Var-DbgInfo.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2010-05-10-Var-DbgInfo.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2010-05-10-Var-DbgInfo.cpp (removed)
@@ -1,42 +0,0 @@
-// PR 7104
-
-struct A {
- int Ai;
-};
-
-struct B : public A {};
-struct C : public B {};
-
-const char * f(int C::*){ return ""; }
-int f(int B::*) { return 1; }
-
-struct D : public C {};
-
-const char * g(int B::*){ return ""; }
-int g(int D::*) { return 1; }
-
-void test()
-{
- int i = f(&A::Ai);
-
- const char * str = g(&A::Ai);
-}
-
-// conversion of B::* to C::* is better than conversion of A::* to C::*
-typedef void (A::*pmfa)();
-typedef void (B::*pmfb)();
-typedef void (C::*pmfc)();
-
-struct X {
- operator pmfa();
- operator pmfb();
-};
-
-
-void g(pmfc);
-
-void test2(X x)
-{
- g(x);
-}
-
Removed: dragonegg/trunk/test/compilator/local/c++/2010-06-22-BitfieldInit.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2010-06-22-BitfieldInit.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2010-06-22-BitfieldInit.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2010-06-22-BitfieldInit.cpp (removed)
@@ -1,19 +0,0 @@
-struct TEST2
-{
- int subid:32;
- int :0;
-};
-
-typedef struct _TEST3
-{
- TEST2 foo;
- TEST2 foo2;
-} TEST3;
-
-TEST3 test =
- {
- {0},
- {0}
- };
-
-int main() { return 0; }
Removed: dragonegg/trunk/test/compilator/local/c++/2010-06-22-ZeroBitfield.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/compilator/local/c%2B%2B/2010-06-22-ZeroBitfield.cpp?rev=153197&view=auto
==============================================================================
--- dragonegg/trunk/test/compilator/local/c++/2010-06-22-ZeroBitfield.cpp (original)
+++ dragonegg/trunk/test/compilator/local/c++/2010-06-22-ZeroBitfield.cpp (removed)
@@ -1,4 +0,0 @@
-struct s8_0 { unsigned : 0; };
-struct s8_1 { double x; };
-struct s8 { s8_0 a; s8_1 b; };
-s8 f8() { return s8(); }
More information about the llvm-commits
mailing list