brintos

brintos / llvm-project-archived public Read only

0
0
Text · 281 B · a95e789 Raw
19 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 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}19