ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gdc.test/runnable/test12197.d

14 lines
166 B
D

// RUNNABLE_PHOBOS_TEST
// import std.math;
void foo(T)(T[] b)
{
b[] = b[] ^^ 4;
}
void main()
{
double[] a = [10];
foo(a);
assert(a[0] == 10000);
}