From 7d3e1fb463f71b6332512ffb094f2285e2b07825 Mon Sep 17 00:00:00 2001 From: k-hara Date: Sun, 29 Mar 2015 11:17:28 +0900 Subject: [PATCH] Move issue 6766 test case to compilable/testfwdref.d --- test/compilable/fwdref6766.d | 11 ----------- test/compilable/testfwdref.d | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) delete mode 100644 test/compilable/fwdref6766.d diff --git a/test/compilable/fwdref6766.d b/test/compilable/fwdref6766.d deleted file mode 100644 index fe5298b04caf..000000000000 --- a/test/compilable/fwdref6766.d +++ /dev/null @@ -1,11 +0,0 @@ -class Foo -{ - this(int x) { } - void test(Foo foo = new Foo(1)) { } -} - -struct Bar -{ - this(int x) { } - void test(Bar bar = Bar(1)) { } -} diff --git a/test/compilable/testfwdref.d b/test/compilable/testfwdref.d index d68a46bc9a73..d4bbe6ac5995 100644 --- a/test/compilable/testfwdref.d +++ b/test/compilable/testfwdref.d @@ -1,5 +1,20 @@ // PERMUTE_ARGS: +/***************************************************/ +// 6766 + +class Foo6766 +{ + this(int x) { } + void test(Foo6766 foo = new Foo6766(1)) { } +} + +struct Bar6766 +{ + this(int x) { } + void test(Bar6766 bar = Bar6766(1)) { } +} + /***************************************************/ // 12152