authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-04-14 23:15:56+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-04-14 23:15:56+07:00
log2ee83e76f7acc4275f654d2a99d0df2715cec17f
tree4af15bb6707fda2e6f5466ecff4b6b8b7b7be1fa
parent9201fbe85bff4ae40573b64382131f779a7ed85c

stage2: Adjust line numbers in tests


2 files changed, 7 insertions(+), 7 deletions(-)

test/stage2/aarch64.zig+1-1
......@@ -159,7 +159,7 @@ pub fn addCases(ctx: *TestContext) !void {
159159 {
160160 var case = ctx.exe("hello world with updates", macos_aarch64);
161161 case.addError("", &[_][]const u8{
162 ":108:9: error: struct 'tmp.tmp' has no member named 'main'",
162 ":109:9: error: struct 'tmp.tmp' has no member named 'main'",
163163 });
164164
165165 // Incorrect return type
test/stage2/x86_64.zig+6-6
......@@ -719,7 +719,7 @@ pub fn addCases(ctx: *TestContext) !void {
719719 );
720720 switch (target.getOsTag()) {
721721 .linux => try case.files.append(.{
722 .src =
722 .src =
723723 \\pub fn print() void {
724724 \\ asm volatile ("syscall"
725725 \\ :
......@@ -735,7 +735,7 @@ pub fn addCases(ctx: *TestContext) !void {
735735 .path = "print.zig",
736736 }),
737737 .macos => try case.files.append(.{
738 .src =
738 .src =
739739 \\extern "c" fn write(usize, usize, usize) usize;
740740 \\
741741 \\pub fn print() void {
......@@ -796,7 +796,7 @@ pub fn addCases(ctx: *TestContext) !void {
796796 );
797797 switch (target.getOsTag()) {
798798 .linux => try case.files.append(.{
799 .src =
799 .src =
800800 \\// dummy comment to make print be on line 2
801801 \\fn print() void {
802802 \\ asm volatile ("syscall"
......@@ -813,7 +813,7 @@ pub fn addCases(ctx: *TestContext) !void {
813813 .path = "print.zig",
814814 }),
815815 .macos => try case.files.append(.{
816 .src =
816 .src =
817817 \\extern "c" fn write(usize, usize, usize) usize;
818818 \\fn print() void {
819819 \\ _ = write(1, @ptrToInt("Hello, World!\n"), 14);
......@@ -1925,7 +1925,7 @@ fn addLinuxTestCases(ctx: *TestContext) !void {
19251925 var case = ctx.exe("hello world with updates", linux_x64);
19261926
19271927 case.addError("", &[_][]const u8{
1928 ":108:9: error: struct 'tmp.tmp' has no member named 'main'",
1928 ":109:9: error: struct 'tmp.tmp' has no member named 'main'",
19291929 });
19301930
19311931 // Incorrect return type
......@@ -2176,7 +2176,7 @@ fn addMacOsTestCases(ctx: *TestContext) !void {
21762176 {
21772177 var case = ctx.exe("darwin hello world with updates", macos_x64);
21782178 case.addError("", &[_][]const u8{
2179 ":108:9: error: struct 'tmp.tmp' has no member named 'main'",
2179 ":109:9: error: struct 'tmp.tmp' has no member named 'main'",
21802180 });
21812181
21822182 // Incorrect return type