Debian Codegraph @

gcc/testsuite/gdc.test/runnable/test17337.d

raw
1 // REQUIRED_ARGS: -mcpu=native
2
3 static if (__traits(compiles, __vector(ubyte[16])))
4 {
5 alias ubyte16 = __vector(ubyte[16]);
6
7 ubyte16 bug(ubyte val)
8 {
9 immutable ubyte16 a = 0, b = val;
10 return b;
11 }
12
13 void main()
14 {
15 bug(0);
16 }
17 }
18 else
19 {
20 void main()
21 {
22 }
23 }