summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/test8556.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/test8556.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/test8556.d9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/test8556.d b/gcc/testsuite/gdc.test/fail_compilation/test8556.d
index 34900412e5b..75c5c593eea 100644
--- a/gcc/testsuite/gdc.test/fail_compilation/test8556.d
+++ b/gcc/testsuite/gdc.test/fail_compilation/test8556.d
@@ -1,8 +1,11 @@
/*
TEST_OUTPUT:
---
-fail_compilation/test8556.d(21): Error: template instance test8556.Grab!(Circle!(uint[])) does not match template declaration Grab(Range) if (!isSliceable!Range)
-fail_compilation/test8556.d(52): Error: template instance test8556.grab!(Circle!(uint[])) error instantiating
+fail_compilation/test8556.d(24): Error: template instance `test8556.Grab!(Circle!(uint[]))` does not match template declaration `Grab(Range)`
+ with `Range = Circle!(uint[])`
+ must satisfy the following constraint:
+` !isSliceable!Range`
+fail_compilation/test8556.d(55): Error: template instance `test8556.grab!(Circle!(uint[]))` error instantiating
---
*/
@@ -34,7 +37,7 @@ struct Circle(Range)
{
//pragma(msg, typeof(opSlice)); // prints "fwdref err" with B, but doesn't with A
- printf("%d %d\n", i, j);
+ printf("%d %d\n", cast(int)i, cast(int)j);
assert(j >= i);
// 1. grabExactly curcular refers this opSlice.