tests: translate-c and run-translated-c to the test harness
This commit is contained in:
@@ -6,6 +6,6 @@ test "Crash" {
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
// is_test=1
|
||||
// is_test=true
|
||||
//
|
||||
// :1:11: error: use of undeclared identifier 'B'
|
||||
|
||||
@@ -4,7 +4,7 @@ test "thingy" {}
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
// is_test=1
|
||||
// is_test=true
|
||||
//
|
||||
// :1:6: error: duplicate test name: test.thingy
|
||||
// :2:6: note: other test here
|
||||
|
||||
@@ -9,6 +9,6 @@ test "1" {
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
// is_test=1
|
||||
// is_test=true
|
||||
//
|
||||
// :2:12: error: use of undeclared identifier 'Q'
|
||||
|
||||
@@ -5,6 +5,6 @@ test "example" {
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
// is_test=1
|
||||
// is_test=true
|
||||
//
|
||||
// :2:12: error: expected type 'anyerror!void', found 'comptime_int'
|
||||
|
||||
@@ -6,7 +6,7 @@ test "enum" {
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
// is_test=1
|
||||
// is_test=true
|
||||
//
|
||||
// :3:9: error: no field with value '@enumFromInt(5)' in enum 'test.enum.E'
|
||||
// :2:15: note: declared here
|
||||
|
||||
Reference in New Issue
Block a user