From d178c0490b9db7f9b4c3cbc0a89f98cb79fa358b Mon Sep 17 00:00:00 2001 From: k-hara Date: Sun, 29 Mar 2015 11:33:08 +0900 Subject: [PATCH] Move issue 12531 test case to compilable/testfwdref.d --- test/compilable/fwdref12531.d | 14 -------------- test/compilable/testfwdref.d | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 test/compilable/fwdref12531.d diff --git a/test/compilable/fwdref12531.d b/test/compilable/fwdref12531.d deleted file mode 100644 index 3172e8ad2852..000000000000 --- a/test/compilable/fwdref12531.d +++ /dev/null @@ -1,14 +0,0 @@ -// PERMUTE_ARGS: - -struct Node(T) -{ - T _val; -} - -void foo() -{ - static struct Foo - { - Node!Foo* node; - } -} diff --git a/test/compilable/testfwdref.d b/test/compilable/testfwdref.d index 483de43775ec..21cd55243024 100644 --- a/test/compilable/testfwdref.d +++ b/test/compilable/testfwdref.d @@ -241,3 +241,19 @@ struct S12201b mixin TM12201; } + +/***************************************************/ +// 12531 + +struct Node12531(T) +{ + T _val; +} + +void test12531() +{ + static struct Foo + { + Node12531!Foo* node; + } +}