Testcase for (llvm-gcc) 81399. Adjust an older

test case to allow for different, functionally
identical output.

llvm-svn: 81400
This commit is contained in:
Dale Johannesen 2009-09-09 23:37:46 +00:00
parent 1ca52689e7
commit c15bfb5975
2 changed files with 20 additions and 2 deletions

View File

@ -3,8 +3,7 @@
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep quux | grep global | grep {struct.bar}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep foo | grep global | grep {struct.SRCFilter::FilterEntry}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.bar} | grep {1 x i32}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.CC} | grep {struct.bar}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.bar} | grep {1 x i32}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.CC} | grep {struct.payre<KBFP,float*} | grep {.base.32} | grep {1 x i32}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.SRCFilter::FilterEntry} | not grep {1 x i32}
// XFAIL: *
// XTARGET: powerpc-apple-darwin
@ -30,3 +29,4 @@ class CC ccc;
struct bar { KBFP x; float* y;}; // 16 bytes
struct bar quux;

View File

@ -0,0 +1,18 @@
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o /dev/null
class X {
public:
virtual ~X();
short y;
};
#pragma pack(push, 1)
class Z : public X {
public: enum { foo = ('x') };
virtual int y() const;
};
#pragma pack(pop)
class Y : public X {
public: enum { foo = ('y'), bar = 0 };
};
X x;
Y y;
Z z;