diff options
Diffstat (limited to 'test/Sema/vector-init.c')
-rw-r--r-- | test/Sema/vector-init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/vector-init.c b/test/Sema/vector-init.c index 6eab32425adf1..18104d871d6c2 100644 --- a/test/Sema/vector-init.c +++ b/test/Sema/vector-init.c @@ -21,3 +21,10 @@ float4 array3[2] = { {1.0, 2.0, 3.0}, 5.0, 6.0, 7.0, 8.0, __attribute__((vector_size(16))) // expected-error {{unsupported type 'float (void)' for vector_size attribute, please use on typedef}} float f1(void) { } + + + +// PR5265 +typedef float __attribute__((ext_vector_type (3))) float3; +int test2[(sizeof(float3) == sizeof(float4))*2-1]; + |