move passing stage1 compile error tests to stage2
This commit is contained in:
committed by
Jakub Konka
parent
c248af3bdc
commit
3204d00a5e
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'
|
||||
Reference in New Issue
Block a user