[cfe-commits] r84833 - in /cfe/trunk: lib/AST/ASTContext.cpp test/Sema/vector-init.c
daniel at zuster.org
Thu Oct 22 08:32:26 PDT 2009
On Wed, Oct 21, 2009 at 10:17 PM, Chris Lattner <sabre at nondot.org> wrote:
> Author: lattner
> Date: Thu Oct 22 00:17:15 2009
> New Revision: 84833
> URL: http://llvm.org/viewvc/llvm-project?rev=84833&view=rev
> fix PR5265: the size of a float3 should be rounded up to its alignment.
> This ensures that arrays of float3 are correctly padded.
> +// PR5265
> +typedef float __attribute__((ext_vector_type (3))) float3;
> +int test2[(sizeof(float3) == sizeof(float3)*2-1)];
I don't think this is the test you are looking for. To start with, it
will always pass, and in addition it appears to be trying to check
that sizeof(float3) == 1.
More information about the cfe-commits