Debian Codegraph @

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

raw
1 /************************************************/
2 // https://issues.dlang.org/show_bug.cgi?id=15180
3 // [REG2.069.0-b1] Segfault with empty struct used as UDA
4
5 struct foo { }
6 @foo bar () { }
7
8 /************************************************/
9
10 // https://issues.dlang.org/show_bug.cgi?id=23241
11
12 alias feynman = int;
13 enum get = __traits(getAttributes, feynman);
14 static assert(get.length == 0);