mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 12:49:50 +00:00
Testcase for (llvm-gcc) 81399. Adjust an older
test case to allow for different, functionally identical output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81400 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd3b9a4f17
commit
b63fd7ac88
@ -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;
|
||||
|
||||
|
18
test/FrontendC++/2009-09-09-packed-layout.cpp
Normal file
18
test/FrontendC++/2009-09-09-packed-layout.cpp
Normal 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;
|
Loading…
Reference in New Issue
Block a user