ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gdc.dg/pr105004.d

15 lines
257 B
D
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105004
// { dg-do compile }
private struct _Complex(T)
{
T re;
T im;
}
enum __c_complex_float : _Complex!float;
__c_complex_float pr105004(float re, float im)
{
return typeof(return)(re, im);
}