[llvm-commits] [llvm] r46333 - /llvm/trunk/test/CFrontend/2008-01-24-StructAlignAndBitFields.c

Duncan Sands baldrick at free.fr
Fri Jan 25 00:55:50 PST 2008


Hi Devang, what is this test testing?  A compiler crash?
It doesn't crash here without your fix.

> +// RUN: %llvmgcc %s -S -o -
> +
> +// This struct is not 4 byte aligned becaues bit-field 
> +// type does not influence struct alignment.
> +struct U { char a; short b; int c:25; char d; } u;

Ciao,

Duncan.



More information about the llvm-commits mailing list