blob: f0cf32bd3f9c8a29faba4757eeb1e8a110e16296 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Eli Friedman6b5374f2009-06-13 10:38:46 +00002
3typedef float __attribute__((vector_size (16))) v4f_t;
4
5typedef union {
6 struct {
7 float x, y, z, w;
8 }s;
9 v4f_t v;
10} vector_t;
11
12
13vector_t foo(v4f_t p)
14{
15 vector_t v = {.v = p};
16 return v;
17}