| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
/* PR C++/118445 */ |
| 4 |
|
| 5 |
#include <arm_sve.h> |
| 6 |
|
| 7 |
/* See if constexpr handles VEC_DUPLICATE and SVE. */ |
| 8 |
constexpr svfloat32_t f(svfloat32_t b, float a) |
| 9 |
{ |
| 10 |
return b + a; |
| 11 |
} |
| 12 |
|
| 13 |
svfloat32_t g(void) |
| 14 |
{ |
| 15 |
return f((svfloat32_t){1.0}, 2.0); |
| 16 |
} |