blob: 5aa59c2799177ede878087269bfceba3c47229e5 [file] [log] [blame]
Roger Ferrer Ibanez3fa38a12017-03-08 14:00:44 +00001// 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
4struct A
5{
6 char a;
7 __unaligned int b;
8} a;
9// CHECK: %struct.A = type { i8, i32 }
10
11struct A2
12{
13 int b;
14 char a;
15 __unaligned int c;
16} a2;
17// CHECK: %struct.A2 = type { i32, i8, i32 }