Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / 2009-09-09-packed-layout.cpp
blob9de2f61420c4f13a800a6244d0ccb53c53dd4244
1 // RUN: %clang_cc1 -emit-llvm -triple i386-apple-darwin11 %s -o /dev/null
2 class X {
3 public:
4 virtual ~X();
5 short y;
6 };
7 #pragma pack(push, 1)
8 class Z : public X {
9 public: enum { foo = ('x') };
10 virtual int y() const;
12 #pragma pack(pop)
13 class Y : public X {
14 public: enum { foo = ('y'), bar = 0 };
16 X x;
17 Y y;
18 Z z;