1a5728872c7702ddd09537c95bc3cbd20e1f2fb09Daniel Dunbar// RUN: %clang_cc1 -fsyntax-only -verify %s 28e8fb3be5bd78f0564444eca02b404566a5f3b5dAndy Gibbs// expected-no-diagnostics 36b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman 46b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedmantypedef float __attribute__((vector_size (16))) v4f_t; 56b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman 66b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedmantypedef union { 76b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman struct { 86b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman float x, y, z, w; 96b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman }s; 106b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman v4f_t v; 116b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman} vector_t; 126b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman 136b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman 146b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedmanvector_t foo(v4f_t p) 156b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman{ 166b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman vector_t v = {.v = p}; 176b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman return v; 186b5374f837f925d99b1a76bc2fe8c98c1698df7fEli Friedman} 19