19 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -o -2 3#pragma pack(push, 2)4 5enum {6 tA = 0,7 tB = 18};9 10struct MyStruct {11 unsigned long A;12 char C;13 void * B;14};15 16void bar(void){17struct MyStruct MS = { tB, 0 };18}19 1// RUN: %clang_cc1 %s -emit-llvm -o -2 3#pragma pack(push, 2)4 5enum {6 tA = 0,7 tB = 18};9 10struct MyStruct {11 unsigned long A;12 char C;13 void * B;14};15 16void bar(void){17struct MyStruct MS = { tB, 0 };18}19