gcc/testsuite/g++.target/aarch64/sve/static-var-in-template.C
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | #include <arm_sve.h> |
| 4 | |
| 5 | template <int N> |
| 6 | void f() |
| 7 | { |
| 8 | static svbool_t pg = svwhilelt_b64(0, N); |
| 9 | } |
| 10 | |
| 11 | int main(int argc, char **argv) |
| 12 | { |
| 13 | f<2>(); |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | /* { dg-error "SVE type 'svbool_t' does not have a fixed size" "" { target *-*-* } 0 } */ |