xref: /aosp_15_r20/external/clang/test/CodeGen/2007-08-01-LoadStoreAlign.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2 
3 struct p {
4   char a;
5   int b;
6 } __attribute__ ((packed));
7 
8 struct p t = { 1, 10 };
9 struct p u;
10 
main()11 int main () {
12   // CHECK: align 1
13   // CHECK: align 1
14   int tmp = t.b;
15   u.b = tmp;
16   return tmp;
17 
18 }
19