diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/runnable/imports/test27a.d')
-rw-r--r-- | gcc/testsuite/gdc.test/runnable/imports/test27a.d | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/gdc.test/runnable/imports/test27a.d b/gcc/testsuite/gdc.test/runnable/imports/test27a.d index 75c945d0798..8a68a165ef5 100644 --- a/gcc/testsuite/gdc.test/runnable/imports/test27a.d +++ b/gcc/testsuite/gdc.test/runnable/imports/test27a.d @@ -1,10 +1,17 @@ module imports.test27a; -import std.variant; +struct Variant +{ + this(T)(T) + { + } +} -class myClass(T) { +class myClass(T) +{ public: - void func(T v) { + void func(T v) + { Variant b = Variant(v); } } |