diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/fail12749.d')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/fail12749.d | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fail12749.d b/gcc/testsuite/gdc.test/fail_compilation/fail12749.d index 149d1209829..231b21e8091 100644 --- a/gcc/testsuite/gdc.test/fail_compilation/fail12749.d +++ b/gcc/testsuite/gdc.test/fail_compilation/fail12749.d @@ -1,10 +1,10 @@ /* TEST_OUTPUT: --- -fail_compilation/fail12749.d(19): Error: immutable field 'inum' initialization is not allowed in foreach loop -fail_compilation/fail12749.d(20): Error: const field 'cnum' initialization is not allowed in foreach loop -fail_compilation/fail12749.d(25): Error: immutable field 'inum' initialization is not allowed in nested function 'set' -fail_compilation/fail12749.d(26): Error: const field 'cnum' initialization is not allowed in nested function 'set' +fail_compilation/fail12749.d(19): Error: immutable field `inum` initialization is not allowed in foreach loop +fail_compilation/fail12749.d(20): Error: const field `cnum` initialization is not allowed in foreach loop +fail_compilation/fail12749.d(25): Error: immutable field `inum` initialization is not allowed in nested function `set` +fail_compilation/fail12749.d(26): Error: const field `cnum` initialization is not allowed in nested function `set` --- */ struct S @@ -31,10 +31,10 @@ struct S /* TEST_OUTPUT: --- -fail_compilation/fail12749.d(48): Error: immutable variable 'inum' initialization is not allowed in foreach loop -fail_compilation/fail12749.d(49): Error: const variable 'cnum' initialization is not allowed in foreach loop -fail_compilation/fail12749.d(54): Error: immutable variable 'inum' initialization is not allowed in nested function 'set' -fail_compilation/fail12749.d(55): Error: const variable 'cnum' initialization is not allowed in nested function 'set' +fail_compilation/fail12749.d(48): Error: immutable variable `inum` initialization is not allowed in foreach loop +fail_compilation/fail12749.d(49): Error: const variable `cnum` initialization is not allowed in foreach loop +fail_compilation/fail12749.d(54): Error: immutable variable `inum` initialization is not allowed in nested function `set` +fail_compilation/fail12749.d(55): Error: const variable `cnum` initialization is not allowed in nested function `set` --- */ immutable int inum; |