Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      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 }
     18