]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/gdc.test/fail_compilation/ice10273.d
d: Synchronize testsuite with upstream dmd
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice10273.d
index b7983bbc4829805adb9984642631aee04a2d7f26..763fc06a0bbbb212e71b898f0b7278cb014f9323 100644 (file)
@@ -1,4 +1,14 @@
-// 10273 - ICE in CTFE
+// https://issues.dlang.org/show_bug.cgi?id=10273
+// ICE in CTFE
+/*
+TEST_OUTPUT:
+---
+fail_compilation/ice10273.d(14): Error: cannot implicitly convert expression `3.45` of type `double` to `int`
+fail_compilation/ice10273.d(13): Error: CTFE failed because of previous errors in `Bug10273.init`
+fail_compilation/ice10273.d(22):        called from here: `bug10273()`
+fail_compilation/ice10273.d(22):        while evaluating: `static assert(bug10273())`
+---
+*/
 
 struct Bug10273 {
     int val = 3.45;