d: Merge dmd. druntime e770945277, phobos 6d6e0b9b9
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail19948.d
blob9c23b78df926ecc59d5d0a9eca5ea52da2c3b125
1 // https://issues.dlang.org/show_bug.cgi?id=19948
2 // DISABLED: win32
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail19948.d(16): Error: function `func` is not callable using argument types `(X)`
7 fail_compilation/fail19948.d(16): cannot pass argument `X()` of type `fail19948.main.X` to parameter `const(fail19948.X)`
8 fail_compilation/fail19948.d(19): `fail19948.func(const(X))` declared here
9 ---
11 // DISABLED: win32
12 struct X {}
13 void main()
15 struct X {}
16 func(X());
19 void func(const(X)) {}