mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-13 17:20:28 +00:00
Remove migrated or obsolete tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138149 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93d39be530
commit
483699c296
@ -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;
|
||||
}
|
@ -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 };
|
||||
|
@ -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;
|
||||
}
|
@ -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); }
|
@ -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;
|
||||
}
|
@ -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];
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
// RUN: %llvmgxx -S %s -o -
|
||||
|
||||
#include <new>
|
||||
typedef double Ty[4];
|
||||
|
||||
void foo(Ty *XX) {
|
||||
new(XX) Ty();
|
||||
}
|
@ -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);
|
||||
}
|
@ -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;
|
||||
}
|
@ -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() { }
|
||||
|
@ -1,7 +0,0 @@
|
||||
// RUN: %llvmgxx -O3 -S -o - %s
|
||||
|
||||
#include <cmath>
|
||||
|
||||
double foo(double X, int Y) {
|
||||
return std::pow(X, Y);
|
||||
}
|
@ -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>;
|
||||
|
@ -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;
|
@ -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; }
|
@ -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();
|
||||
}
|
@ -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;
|
||||
}
|
@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user