1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc typedef float __attribute__((vector_size (16))) v4f_t; 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc typedef union { 7*f4a2713aSLionel Sambuc struct { 8*f4a2713aSLionel Sambuc float x, y, z, w; 9*f4a2713aSLionel Sambuc }s; 10*f4a2713aSLionel Sambuc v4f_t v; 11*f4a2713aSLionel Sambuc } vector_t; 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc foo(v4f_t p)14*f4a2713aSLionel Sambucvector_t foo(v4f_t p) 15*f4a2713aSLionel Sambuc { 16*f4a2713aSLionel Sambuc vector_t v = {.v = p}; 17*f4a2713aSLionel Sambuc return v; 18*f4a2713aSLionel Sambuc } 19