summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail18719.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/fail18719.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/fail18719.d7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fail18719.d b/gcc/testsuite/gdc.test/fail_compilation/fail18719.d
index 7d993d13485..7ed513a3dfc 100644
--- a/gcc/testsuite/gdc.test/fail_compilation/fail18719.d
+++ b/gcc/testsuite/gdc.test/fail_compilation/fail18719.d
@@ -1,10 +1,9 @@
// https://issues.dlang.org/show_bug.cgi?id=18719
-// REQUIRED_ARGS:
/*
TEST_OUTPUT:
---
-fail_compilation/fail18719.d(30): Error: immutable field `x` initialized multiple times
+fail_compilation/fail18719.d(29): Error: immutable field `x` initialized multiple times
Previous initialization is here.
---
*/
@@ -15,8 +14,8 @@ struct S
this(int y) immutable
{
x = y;
- import std.stdio;
- writeln("Ctor called with ", y);
+ import core.stdc.stdio;
+ printf("Ctor called with %d\n", y);
}
void opAssign(int) immutable;
}