mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-13 23:46:16 +01:00
move passing stage1 compile error tests to stage2
This commit is contained in:
parent
c248af3bdc
commit
3204d00a5e
421 changed files with 1686 additions and 1636 deletions
8
test/cases/compile_errors/integer_overflow_error.zig
Normal file
8
test/cases/compile_errors/integer_overflow_error.zig
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
const x : u8 = 300;
|
||||
export fn entry() usize { return @sizeOf(@TypeOf(x)); }
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :1:16: error: type 'u8' cannot represent integer value '300'
|
||||
Loading…
Add table
Add a link
Reference in a new issue