New test case.

llvm-svn: 35868
This commit is contained in:
Devang Patel 2007-04-10 21:43:01 +00:00
parent 60f3ece40f
commit 6d8b1e984b

View File

@ -0,0 +1,41 @@
// RUN: %llvmgxx -S %s -o /dev/null
extern "C" {
#pragma pack(push, 2)
typedef struct ABC* abc;
struct ABCS {
float red;
float green;
float blue;
float alpha;
};
typedef void (*XYZ)();
#pragma pack(pop)
}
union ABCU {
ABCS color;
XYZ bg;
};
struct AData {
ABCU data;
};
class L {
public:
L() {}
L(const L& other);
private:
AData fdata;
};
L::L(const L& other)
{
fdata = other.fdata;
}