| 1 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fms-extensions -emit-llvm < %s | FileCheck %s |
|---|---|
| 2 | // Test that __unaligned does not impact the layout of the fields. |
| 3 | |
| 4 | struct A |
| 5 | { |
| 6 | char a; |
| 7 | __unaligned int b; |
| 8 | } a; |
| 9 | // CHECK: %struct.A = type { i8, i32 } |
| 10 | |
| 11 | struct A2 |
| 12 | { |
| 13 | int b; |
| 14 | char a; |
| 15 | __unaligned int c; |
| 16 | } a2; |
| 17 | // CHECK: %struct.A2 = type { i32, i8, i32 } |
| 18 |