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:
Tanya Lattner 2004-11-06 22:29:57 +00:00
parent e7e3f2e5cd
commit d13e0ae12e
26 changed files with 52 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
void foo(); void foo();
void bar() { void bar() {

View File

@ -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 {};

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
namespace foo { namespace foo {
namespace bar { namespace bar {

View File

@ -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();

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
char* eback(); char* eback();

View File

@ -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!

View File

@ -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;

View File

@ -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.

View File

@ -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);

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct C {}; struct C {};
C &foo(); C &foo();

View File

@ -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;

View File

@ -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.

View File

@ -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;

View File

@ -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 {

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct Foo { struct Foo {
Foo(int); Foo(int);

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
#include <string> #include <string>
void bar(); void bar();

View File

@ -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
}; };

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct Gfx { struct Gfx {
void opMoveSetShowText(); void opMoveSetShowText();
}; };

View File

@ -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 ();

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct CallSite { struct CallSite {
int X; int X;

View File

@ -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 {

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct Evil { struct Evil {
void fun (); void fun ();
}; };

View File

@ -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;
}; };

View File

@ -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 {

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
template<typename Ty> template<typename Ty>

View File

@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct Pass {} ; struct Pass {} ;