blob: 9de2f61420c4f13a800a6244d0ccb53c53dd4244 [file] [log] [blame]
Eric Christopherea6de302011-08-19 21:24:41 +00001// RUN: %clang_cc1 -emit-llvm -triple i386-apple-darwin11 %s -o /dev/null
2class X {
3 public:
4 virtual ~X();
5 short y;
6};
7#pragma pack(push, 1)
8class Z : public X {
9 public: enum { foo = ('x') };
10 virtual int y() const;
11};
12#pragma pack(pop)
13class Y : public X {
14public: enum { foo = ('y'), bar = 0 };
15};
16X x;
17Y y;
18Z z;