1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/FrontendC/2003-09-30-StructLayout.c

19 lines
219 B
C
Raw Normal View History

2004-11-06 23:41:00 +01:00
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
enum En {
ENUM_VAL
};
struct St {
unsigned char A;
enum En B;
unsigned char C;
enum En D;
float E;
};
void func(struct St* A) {
A->D = ENUM_VAL;
}