| 1 | // RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.2 %s -emit-llvm -o - | FileCheck %s |
|---|---|
| 2 | // <rdar://problem/10551376> |
| 3 | |
| 4 | struct FOO { |
| 5 | unsigned int x; |
| 6 | }; |
| 7 | |
| 8 | #pragma pack(push, 2) |
| 9 | |
| 10 | // CHECK: %struct.BAR = type <{ %struct.FOO, i8, i8 }> |
| 11 | struct BAR : FOO { |
| 12 | char y; |
| 13 | }; |
| 14 | |
| 15 | #pragma pack(pop) |
| 16 | |
| 17 | BAR* x = 0; |