mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
This commit is contained in:
parent
3070fc288a
commit
0aee4697bd
8 changed files with 39 additions and 30 deletions
|
@ -1,22 +1,24 @@
|
|||
/*
|
||||
/*
|
||||
REQUIRED_ARGS: -verrors=context
|
||||
TEST_OUTPUT:
|
||||
---
|
||||
fail_compilation/fail_pretty_errors.d(27): Error: undefined identifier `a`
|
||||
fail_compilation/fail_pretty_errors.d(29): Error: undefined identifier `a`
|
||||
a = 1;
|
||||
^
|
||||
fail_compilation/fail_pretty_errors.d-mixin-32(32): Error: undefined identifier `b`
|
||||
fail_compilation/fail_pretty_errors.d(37): Error: cannot implicitly convert expression `5` of type `int` to `string`
|
||||
fail_compilation/fail_pretty_errors.d-mixin-34(34): Error: undefined identifier `b`
|
||||
b = 1;
|
||||
^
|
||||
fail_compilation/fail_pretty_errors.d(39): Error: cannot implicitly convert expression `5` of type `int` to `string`
|
||||
string x = 5;
|
||||
^
|
||||
fail_compilation/fail_pretty_errors.d(42): Error: mixin `fail_pretty_errors.testMixin2.mixinTemplate!()` error instantiating
|
||||
fail_compilation/fail_pretty_errors.d(44): Error: mixin `fail_pretty_errors.testMixin2.mixinTemplate!()` error instantiating
|
||||
mixin mixinTemplate;
|
||||
^
|
||||
fail_compilation/fail_pretty_errors.d(48): Error: invalid array operation `"" + ""` (possible missing [])
|
||||
fail_compilation/fail_pretty_errors.d(50): Error: invalid array operation `"" + ""` (possible missing [])
|
||||
auto x = ""+"";
|
||||
^
|
||||
fail_compilation/fail_pretty_errors.d(48): did you mean to concatenate (`"" ~ ""`) instead ?
|
||||
fail_compilation/fail_pretty_errors.d(51): Error: cannot implicitly convert expression `1111` of type `int` to `byte`
|
||||
fail_compilation/fail_pretty_errors.d(50): did you mean to concatenate (`"" ~ ""`) instead ?
|
||||
fail_compilation/fail_pretty_errors.d(53): Error: cannot implicitly convert expression `1111` of type `int` to `byte`
|
||||
byte ɑ = 1111;
|
||||
^
|
||||
---
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// check dsymbolSemantic analysis of C files
|
||||
/* TEST_OUTPUT:
|
||||
REQUIRED_ARGS: -verrors=context
|
||||
---
|
||||
fail_compilation/failcstuff6.c(56): Error: enum member `failcstuff6.test_overflow.boom` initialization with `2147483647+1` causes overflow for type `int`
|
||||
boom,
|
||||
^
|
||||
---
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue