mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-13 11:30:21 +00:00
Adding RUN lines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e7e3f2e5cd
commit
d13e0ae12e
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
void foo();
|
void foo();
|
||||||
|
|
||||||
void bar() {
|
void bar() {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
// This tests compilation of EMPTY_CLASS_EXPR's
|
// This tests compilation of EMPTY_CLASS_EXPR's
|
||||||
|
|
||||||
struct empty {};
|
struct empty {};
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
namespace foo {
|
namespace foo {
|
||||||
namespace bar {
|
namespace bar {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
// XFAIL: darwin,sun
|
// XFAIL: darwin,sun
|
||||||
// Default placement versions of operator new.
|
// Default placement versions of operator new.
|
||||||
inline void* operator new(unsigned, void* __p) throw();
|
inline void* operator new(unsigned, void* __p) throw();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
char* eback();
|
char* eback();
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
// There is a HOLE in the derived2 object due to not wanting to place the two
|
// There is a HOLE in the derived2 object due to not wanting to place the two
|
||||||
// baseclass instances at the same offset!
|
// baseclass instances at the same offset!
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
struct duration {
|
struct duration {
|
||||||
duration operator/=(int c) {
|
duration operator/=(int c) {
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
// Non-POD classes cannot be passed into a function by component, because their
|
// 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
|
// dtors must be run. Instead, pass them in by reference. The C++ front-end
|
||||||
// was mistakenly "thinking" that 'foo' took a structure by component.
|
// was mistakenly "thinking" that 'foo' took a structure by component.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
class Empty {};
|
class Empty {};
|
||||||
|
|
||||||
void foo(Empty E);
|
void foo(Empty E);
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
struct C {};
|
struct C {};
|
||||||
|
|
||||||
C &foo();
|
C &foo();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
// Test with an opaque type
|
// Test with an opaque type
|
||||||
|
|
||||||
struct C;
|
struct C;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
// The C++ front-end thinks the two foo's are different, the LLVM emitter
|
// The C++ front-end thinks the two foo's are different, the LLVM emitter
|
||||||
// thinks they are the same. The disconnect causes problems.
|
// thinks they are the same. The disconnect causes problems.
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
struct test {
|
struct test {
|
||||||
bool A : 1;
|
bool A : 1;
|
||||||
bool B : 1;
|
bool B : 1;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
struct super {
|
struct super {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
struct Foo {
|
struct Foo {
|
||||||
Foo(int);
|
Foo(int);
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
void bar();
|
void bar();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
enum TchkType {
|
enum TchkType {
|
||||||
tchkNum, tchkString, tchkSCN, tchkNone
|
tchkNum, tchkString, tchkSCN, tchkNone
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
struct Gfx {
|
struct Gfx {
|
||||||
void opMoveSetShowText();
|
void opMoveSetShowText();
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
std::vector<int> my_method ();
|
std::vector<int> my_method ();
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
struct CallSite {
|
struct CallSite {
|
||||||
int X;
|
int X;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
void doesntThrow() throw();
|
void doesntThrow() throw();
|
||||||
struct F {
|
struct F {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
struct Evil {
|
struct Evil {
|
||||||
void fun ();
|
void fun ();
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
struct A {
|
struct A {
|
||||||
virtual void Method() = 0;
|
virtual void Method() = 0;
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
// Testcase from Bug 291
|
// Testcase from Bug 291
|
||||||
|
|
||||||
struct X {
|
struct X {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
template<typename Ty>
|
template<typename Ty>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct Pass {} ;
|
struct Pass {} ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user