Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Eli Friedman | 6b5374f | 2009-06-13 10:38:46 +0000 | [diff] [blame] | 2 | |
3 | typedef float __attribute__((vector_size (16))) v4f_t; | ||||
4 | |||||
5 | typedef union { | ||||
6 | struct { | ||||
7 | float x, y, z, w; | ||||
8 | }s; | ||||
9 | v4f_t v; | ||||
10 | } vector_t; | ||||
11 | |||||
12 | |||||
13 | vector_t foo(v4f_t p) | ||||
14 | { | ||||
15 | vector_t v = {.v = p}; | ||||
16 | return v; | ||||
17 | } |