diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/runnable/uda.d')
-rw-r--r-- | gcc/testsuite/gdc.test/runnable/uda.d | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/gcc/testsuite/gdc.test/runnable/uda.d b/gcc/testsuite/gdc.test/runnable/uda.d index a01a5ca6039..cdb9aa660cb 100644 --- a/gcc/testsuite/gdc.test/runnable/uda.d +++ b/gcc/testsuite/gdc.test/runnable/uda.d @@ -286,7 +286,7 @@ void test12() } /************************************************/ -// 9178 +// https://issues.dlang.org/show_bug.cgi?id=9178 void test9178() { @@ -297,7 +297,7 @@ void test9178() } /************************************************/ -// 9652 +// https://issues.dlang.org/show_bug.cgi?id=9652 struct Bug9652 { @@ -353,7 +353,7 @@ struct Bug9652 } /************************************************/ -// 9741 +// https://issues.dlang.org/show_bug.cgi?id=9741 import imports.a9741; @@ -364,7 +364,7 @@ alias X9741 = ShowAttributes!(B9741); @A9741 struct B9741 {} /************************************************/ -// 12160 +// https://issues.dlang.org/show_bug.cgi?id=12160 auto before12160(alias Hook)(string) { return 0; } @@ -384,7 +384,7 @@ void test12160() } /************************************************/ -// 10208 +// https://issues.dlang.org/show_bug.cgi?id=10208 @( 10) enum int x10208_01 = 100; @( 20) int x10208_02; @@ -416,7 +416,8 @@ static assert(__traits(getAttributes, x10208_13)[0] == 130); // Error -> OK static assert(__traits(getAttributes, x10208_14)[0] == 140); // Error -> OK /************************************************/ -// 11677, 11678 +// https://issues.dlang.org/show_bug.cgi?id=11677 +// https://issues.dlang.org/show_bug.cgi?id=11678 bool test_uda(alias func)() @safe { @@ -445,7 +446,7 @@ static assert(test_uda!func11678b()); static assert(test_uda!func11678c()); /************************************************/ -// 11678 +// https://issues.dlang.org/show_bug.cgi?id=11678 class C11678 { @@ -460,7 +461,7 @@ static ~this() @(10) @(20) {} shared static ~this() @(10) @(20) {} /************************************************/ -// 11679 +// https://issues.dlang.org/show_bug.cgi?id=11679 void test11679() { @@ -469,7 +470,7 @@ void test11679() } /************************************************/ -// 11680 +// https://issues.dlang.org/show_bug.cgi?id=11680 @(10) gvar11680 = 1; // OK <- NG @(10) gfun11680() {} // OK <- NG @@ -481,7 +482,7 @@ void test11680() } /************************************************/ -// 11844 +// https://issues.dlang.org/show_bug.cgi?id=11844 auto make_encode11844(T, string name)() { @@ -687,7 +688,14 @@ void test20() } /************************************************/ +// https://issues.dlang.org/show_bug.cgi?id=20831 +void foo20831(int f, float, @("test") string s = "test") {} + +static if(is(typeof(foo20831) Params20831 == __parameters)) + static assert([__traits(getAttributes, Params20831[1..2])] == []); + +/************************************************/ int main() { |