Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test21514.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=21514
2 // REQUIRED_ARGS: -verrors=simple
3 // DISABLED: win32 win64
4 /* TEST_OUTPUT:
5 ---
6 compilable/test21514.d(17): Deprecation: use of complex type `cdouble` is deprecated, use `std.complex.Complex!(double)` instead
7 compilable/test21514.d(17): Deprecation: use of complex type `cdouble` is deprecated, use `std.complex.Complex!(double)` instead
8 compilable/test21514.d(18): Deprecation: use of complex type `creal` is deprecated, use `std.complex.Complex!(real)` instead
9 compilable/test21514.d(18): Deprecation: use of complex type `creal` is deprecated, use `std.complex.Complex!(real)` instead
10 compilable/test21514.d(20): Deprecation: use of complex type `cdouble` is deprecated, use `std.complex.Complex!(double)` instead
11 compilable/test21514.d(20): Deprecation: use of complex type `cdouble` is deprecated, use `std.complex.Complex!(double)` instead
12 compilable/test21514.d(21): Deprecation: use of complex type `creal` is deprecated, use `std.complex.Complex!(real)` instead
13 compilable/test21514.d(21): Deprecation: use of complex type `creal` is deprecated, use `std.complex.Complex!(real)` instead
14 ---
15 */
16
17 extern(C++) cdouble cpp_cadd1(cdouble c) { return c + 1; }
18 extern(C++) creal cpp_cadd1l(creal c) { return c + 1; }
19
20 cdouble cadd1(cdouble c) { return cpp_cadd1(c); }
21 creal cadd1(creal c) { return cpp_cadd1l(c); }