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