summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/aliasdecl.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/aliasdecl.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/aliasdecl.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/aliasdecl.d b/gcc/testsuite/gdc.test/compilable/aliasdecl.d
index 90e21effac3..5bacbc62347 100644
--- a/gcc/testsuite/gdc.test/compilable/aliasdecl.d
+++ b/gcc/testsuite/gdc.test/compilable/aliasdecl.d
@@ -29,6 +29,13 @@ void main()
static assert(is(Y4 == void delegate() const));
static assert(is(Y5.Type == int));
+ // https://issues.dlang.org/show_bug.cgi?id=18429
+ struct S
+ {
+ alias a this;
+ enum a = 1;
+ }
+
/+ struct S
{
int value;