Debian Codegraph @

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

raw
1 // PERMUTE_ARGS:
2
3 static if (__traits(compiles, __vector(float[4])))
4 {
5 alias float4 = __vector(float[4]);
6
7 void foo(float4* ptr, float4 val)
8 {
9 assert((cast(ulong) &val & 0xf) == 0);
10 }
11
12 void main()
13 {
14 float4 v;
15 foo(&v, v);
16 }
17 }
18 else
19 void main(){}