1 // RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify %s 2 3 namespace rdar8745206 { 4 5 struct Base { 6 int i; 7 }; 8 9 #pragma pack(push, 1) 10 struct Sub : public Base { 11 char c; 12 }; 13 #pragma pack(pop) 14 15 int check[sizeof(Sub) == 5 ? 1 : -1]; 16 17 } 18 19 namespace check2 { 20 21 struct Base { 22 virtual ~Base(); 23 int x; 24 }; 25 26 #pragma pack(push, 1) 27 struct Sub : virtual Base { 28 char c; 29 }; 30 #pragma pack(pop) 31 32 int check[sizeof(Sub) == 13 ? 1 : -1]; 33 34 } 35