]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/verrors_spec.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / verrors_spec.d
1 /*
2 PERMUTE_ARGS:
3 REQUIRED_ARGS: -verrors=spec
4 TEST_OUTPUT:
5 ---
6 (spec:1) compilable/verrors_spec.d(13): Error: cannot implicitly convert expression `& i` of type `int*` to `int`
7 ---
8 */
9
10 void foo(int i)
11 {
12 int p;
13 bool b = __traits(compiles, {p = &i;});
14 }