diff options
Diffstat (limited to 'test/FrontendC/2003-09-30-StructLayout.c')
-rw-r--r-- | test/FrontendC/2003-09-30-StructLayout.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/FrontendC/2003-09-30-StructLayout.c b/test/FrontendC/2003-09-30-StructLayout.c new file mode 100644 index 0000000..177d1f4 --- /dev/null +++ b/test/FrontendC/2003-09-30-StructLayout.c @@ -0,0 +1,18 @@ +// RUN: %llvmgcc -S %s -o - | llvm-as -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; +} |