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
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
void foo();
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
struct empty {};
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
namespace foo {
namespace bar {
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
// XFAIL: darwin,sun
// Default placement versions of operator new.
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();
@@ -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
// baseclass instances at the same offset!
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct duration {
duration operator/=(int c) {
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
// dtors must be run. Instead, pass them in by reference. The C++ front-end
// 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 {};
void foo(Empty E);
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct C {};
C &foo();
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
// Test with an opaque type
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
// 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 {
bool A : 1;
bool B : 1;
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
template<class T>
struct super {
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct Foo {
Foo(int);
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
#include <string>
void bar();
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
enum TchkType {
tchkNum, tchkString, tchkSCN, tchkNone
};
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct Gfx {
void opMoveSetShowText();
};
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
#include <vector>
std::vector<int> my_method ();
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct CallSite {
int X;
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
void doesntThrow() throw();
struct F {
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct Evil {
void fun ();
};
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct A {
virtual void Method() = 0;
};
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
// Testcase from Bug 291
struct X {
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
template<typename Ty>
@@ -1,3 +1,5 @@
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
struct Pass {} ;