mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
13 lines
166 B
D
13 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);
|
|
}
|