summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/imports/test27a.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/runnable/imports/test27a.d')
-rw-r--r--gcc/testsuite/gdc.test/runnable/imports/test27a.d13
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);
}
}