xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2003-09-30-StructLayout.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc enum En {
4*f4a2713aSLionel Sambuc   ENUM_VAL
5*f4a2713aSLionel Sambuc };
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc struct St {
8*f4a2713aSLionel Sambuc   unsigned char A;
9*f4a2713aSLionel Sambuc   enum En B;
10*f4a2713aSLionel Sambuc   unsigned char C;
11*f4a2713aSLionel Sambuc   enum En D;
12*f4a2713aSLionel Sambuc   float E;
13*f4a2713aSLionel Sambuc };
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc 
func(struct St * A)16*f4a2713aSLionel Sambuc void func(struct St* A) {
17*f4a2713aSLionel Sambuc   A->D = ENUM_VAL;
18*f4a2713aSLionel Sambuc }
19