Debian Codegraph @

gcc/testsuite/g++.target/aarch64/sve/acle/general-c++/conversion_1.C

raw
1 /* { dg-do compile } */
2
3 #include <arm_sve.h>
4
5 template<typename T>
6 struct S
7 {
8 S(T);
9 operator T() const;
10 void *base;
11 };
12
13 void f(svbool_t pg, const S<svuint8_t> &u8a, const S<svuint8_t> &u8b,
14 const S<svint8_t> &s8a)
15 {
16 svadd_x(pg, u8a, u8b);
17 svadd_x(pg, u8a, 1);
18 svadd_x(pg, s8a, u8b); // { dg-error "no matching function for call" }
19 svadd_x(pg, s8a, 1);
20 }