blob: a156921254b6ca5fa333b4365ae2fce363bfb83c [file] [log] [blame]
Peter Collingbournee91b2db2011-02-15 19:46:41 +00001// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
Andy Gibbsc6e68da2012-10-19 12:44:48 +00002// expected-no-diagnostics
Nate Begeman5da51d32010-07-07 22:26:56 +00003
4typedef float float8 __attribute((ext_vector_type(8)));
5
6typedef float float32_t;
7typedef __attribute__(( __vector_size__(16) )) float32_t __neon_float32x4_t;
8typedef struct __simd128_float32_t {
9 __neon_float32x4_t val;
10} float32x4_t;
11
12float8 foo(float8 x) {
13 float32x4_t lo;
14 float32x4_t hi;
15 return (float8) (lo.val, hi.val);
16}