[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / unaligned-field.c
blob5aa59c2799177ede878087269bfceba3c47229e5
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.
4 struct A
6 char a;
7 __unaligned int b;
8 } a;
9 // CHECK: %struct.A = type { i8, i32 }
11 struct A2
13 int b;
14 char a;
15 __unaligned int c;
16 } a2;
17 // CHECK: %struct.A2 = type { i32, i8, i32 }