Home | History | Annotate | Download | only in SemaOpenCL
      1 // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
      2 // expected-no-diagnostics
      3 
      4 typedef float float8 __attribute((ext_vector_type(8)));
      5 
      6 typedef float float32_t;
      7 typedef __attribute__(( __vector_size__(16) )) float32_t __neon_float32x4_t;
      8 typedef struct __simd128_float32_t {
      9   __neon_float32x4_t val;
     10 } float32x4_t;
     11 
     12 float8 foo(float8 x) { 
     13   float32x4_t lo;
     14   float32x4_t hi;
     15   return (float8) (lo.val, hi.val);
     16 }
     17