Debian Codegraph @

gcc/testsuite/gdc.dg/pr96869.d

raw
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96869
2 // { dg-do compile }
3
4 __vector(float[0]) var01;
5 // { dg-error "0 byte vector type '__vector\\\(float\\\[0\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
6 __vector(float[3]) var02;
7 // { dg-error "12 byte vector type '__vector\\\(float\\\[3\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
8 __vector(float[][4]) var03;
9 // { dg-error "vector type '__vector\\\(float\\\[\\\]\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
10 __vector(float[4][4]) var04;
11 // { dg-error "vector type '__vector\\\(float\\\[4\\\]\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
12 __vector(float[float][4]) var05;
13 // { dg-error "vector type '__vector\\\(float\\\[float\\\]\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
14 __vector(float function()[4]) var06;
15 // { dg-error "vector type '__vector\\\(float function\\\(\\\)\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
16 __vector(float delegate()[4]) var07;
17 // { dg-error "vector type '__vector\\\(float delegate\\\(\\\)\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
18 enum E { a, b, c }
19 __vector(E[4]) var08;
20 // { dg-error "vector type '__vector\\\(E\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
21 struct S { float a; }
22 __vector(S[4]) var09;
23 // { dg-error "vector type '__vector\\\(S\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
24 class C { float a; }
25 __vector(C[4]) var10;
26 // { dg-error "vector type '__vector\\\(C\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
27 __vector(cfloat[4]) var11;
28 // { dg-error "vector type '__vector\\\(cfloat\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
29 __vector(bool[4]) var12;
30 // { dg-error "vector type '__vector\\\(bool\\\[4\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }
31 __vector(real[128]) var13;
32 // { dg-error "vector type '__vector\\\(real\\\[128\\\]\\\)' is not supported on this platform" "" { target *-*-* } .-1 }