mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Remove migrated or obsolete tests.
llvm-svn: 138156
This commit is contained in:
parent
bfc0c6c1de
commit
ca1e7d27a9
@ -1,21 +0,0 @@
|
||||
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
|
||||
|
||||
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;
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
// RUN: %llvmgcc -xc++ -S -o - %s | grep _ZN11AccessFlags6strlenEv
|
||||
|
||||
struct AccessFlags {
|
||||
void strlen();
|
||||
};
|
||||
|
||||
void AccessFlags::strlen() { }
|
||||
|
@ -1,14 +0,0 @@
|
||||
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
|
||||
|
||||
// Testcase from Bug 291
|
||||
|
||||
struct X {
|
||||
~X();
|
||||
};
|
||||
|
||||
void foo() {
|
||||
X v;
|
||||
|
||||
TryAgain:
|
||||
goto TryAgain;
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
|
||||
|
||||
|
||||
|
||||
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;
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
|
||||
|
||||
struct Pass {} ;
|
||||
template<typename PassName>
|
||||
Pass *callDefaultCtor() { return new PassName(); }
|
||||
|
||||
void foo(Pass *(*C)());
|
||||
|
||||
#include <string>
|
||||
|
||||
bool foo(std::string &X) {
|
||||
return X.empty();
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
// RUN: %llvmgxx -xc++ %s -S -o - | grep callDefaultCtor | \
|
||||
// RUN: not grep declare
|
||||
|
||||
// This is a testcase for LLVM PR445, which was a problem where the
|
||||
// instantiation of callDefaultCtor was not being emitted correctly.
|
||||
|
||||
struct Pass {};
|
||||
|
||||
template<typename PassName>
|
||||
Pass *callDefaultCtor() { return new Pass(); }
|
||||
|
||||
void foo(Pass *(*C)());
|
||||
|
||||
struct basic_string {
|
||||
bool empty() const { return true; }
|
||||
};
|
||||
|
||||
|
||||
bool foo2(basic_string &X) {
|
||||
return X.empty();
|
||||
}
|
||||
void baz() { foo(callDefaultCtor<Pass>); }
|
||||
|
@ -1,7 +0,0 @@
|
||||
// The C++ front-end was emitting WAY too many inline functions. This test
|
||||
// verifies that it does not emit the body of getchar, because it is not used.
|
||||
// This corresponds to PR459
|
||||
|
||||
// RUN: %llvmgxx %s -S -o - | not grep {^i32 .getchar}
|
||||
|
||||
#include <stdio.h>
|
@ -1,14 +0,0 @@
|
||||
// RUN: %llvmgxx %s -S -o /dev/null
|
||||
|
||||
// This is PR421
|
||||
|
||||
struct Strongbad {
|
||||
Strongbad(const char *str );
|
||||
~Strongbad();
|
||||
operator const char *() const;
|
||||
};
|
||||
|
||||
void TheCheat () {
|
||||
Strongbad foo(0);
|
||||
Strongbad dirs[] = { Strongbad(0) + 1};
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
// RUN: %llvmgxx %s -o /dev/null -S
|
||||
|
||||
// PR447
|
||||
|
||||
namespace nm {
|
||||
struct str {
|
||||
friend int foo(int arg = 0);
|
||||
};
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
// RUN: %llvmgxx %s -S -o /dev/null
|
||||
|
||||
// PR397
|
||||
|
||||
struct stat { };
|
||||
struct stat64 { };
|
||||
|
||||
extern "C" {
|
||||
|
||||
extern int lstat(const char *, struct stat *) __asm__("lstat64");
|
||||
extern int lstat64(const char *, struct stat64 *);
|
||||
|
||||
extern int __lxstat(int, const char *, struct stat *) __asm__("__lxstat64");
|
||||
extern int __lxstat64(int, const char *, struct stat64 *);
|
||||
|
||||
extern __inline__ int lstat(const char *path, struct stat *statbuf) {
|
||||
return __lxstat(3, path, statbuf);
|
||||
}
|
||||
extern __inline__ int lstat64(const char *path, struct stat64 *statbuf) {
|
||||
return __lxstat64(3, path, statbuf);
|
||||
}
|
||||
}
|
||||
|
||||
int do_one_file(void) {
|
||||
return lstat(0, 0) + lstat64(0,0);
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
// RUN: %llvmgxx %s -S -o - | not grep llvm.global_ctor
|
||||
|
||||
struct S {
|
||||
int A[2];
|
||||
};
|
||||
|
||||
int XX = (int)(long)&(((struct S*)0)->A[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user