Initialize HasMetadata to zero.
[llvm/avr.git] / test / FrontendC++ / 2007-04-10-PackedUnion.cpp
blobb4b8894ae2cf9fd34c6583a18fe1518f2e792c05
1 // RUN: %llvmgxx -S %s -o /dev/null
2 extern "C" {
4 #pragma pack(push, 2)
5 typedef struct ABC* abc;
7 struct ABCS {
8 float red;
9 float green;
10 float blue;
11 float alpha;
14 typedef void (*XYZ)();
15 #pragma pack(pop)
19 union ABCU {
20 ABCS color;
21 XYZ bg;
24 struct AData {
25 ABCU data;
28 class L {
29 public:
30 L() {}
31 L(const L& other);
33 private:
34 AData fdata;
38 L::L(const L& other)
40 fdata = other.fdata;