[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / 2007-04-10-PackedUnion.cpp
blob863fc82692e9799b30b6a457183011c91af76458
1 // RUN: %clang_cc1 -emit-llvm %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;