8f64f7c2ee2320b28295e660292a33c040554861
[gcc.git] / gcc / testsuite / g++.target / aarch64 / sve / acle / general-c++ / mangle_3.C
1 /* { dg-do compile } */
2 /* { dg-additional-options "-msve-vector-bits=256" } */
3
4 #include <arm_sve.h>
5
6 typedef __SVInt8_t t1;
7 typedef svint8_t t2;
8 /* Distinct from svint8_t, but compatible with it. */
9 typedef int8_t t3 __attribute__((vector_size(32)));
10
11 void f1(t1) {}
12 void f2(t2) {}
13 void f3(t3) {}
14 void f4(t1 &a, t2 &b, t3 &c) { a = b = c; }
15
16 /* { dg-final { scan-assembler "_Z2f110__SVInt8_t:" } } */
17 /* { dg-final { scan-assembler "_Z2f210__SVInt8_t:" } } */
18 /* { dg-final { scan-assembler "_Z2f3Dv32_a:" } } */