mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
14 lines
276 B
D
14 lines
276 B
D
/*
|
|
PERMUTE_ARGS:
|
|
REQUIRED_ARGS: -verrors=simple -verrors=spec
|
|
TEST_OUTPUT:
|
|
---
|
|
(spec:1) compilable/verrors_spec.d(13): Error: cannot implicitly convert expression `& i` of type `int*` to `int`
|
|
---
|
|
*/
|
|
|
|
void foo(int i)
|
|
{
|
|
int p;
|
|
bool b = __traits(compiles, {p = &i;});
|
|
}
|