Debian Codegraph @

gcc/testsuite/g++.dg/ext/attrib63.C

raw
1 // { dg-do compile }
2 // { dg-additional-options "-Wno-psabi" }
3
4 #define vector __attribute__((vector_size(16)))
5 class A {
6 friend vector float f();
7 __attribute__((deprecated)) friend void f2();
8 friend __attribute__((deprecated, vector_size(16))) float f3();
9 friend __attribute__((vector_size(16), deprecated)) float f4();
10 };
11
12 vector float vf;
13 vector float
14 f ()
15 {
16 return vf;
17 }
18
19 void
20 f2 ()
21 {
22 }
23
24 vector float
25 f3 ()
26 {
27 return vf;
28 }
29
30 vector float
31 f4 ()
32 {
33 return vf;
34 }