authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-10-11 00:41:05+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-10-13 08:38:17+02:00
logcf2aea7b41c42e171cc4a5516d77ed6f5df040c6
tree94acb0441110611d18d059456be2aa9c067f32e1
parentecd480fe93b7ee1882267bed6efbfcfe45402ab6

Enable incremental testcase for macOS


1 files changed, 32 insertions(+), 0 deletions(-)

test/stage2/test.zig+32
......@@ -186,6 +186,38 @@ pub fn addCases(ctx: *TestContext) !void {
186186 ,
187187 "Hello, World!\n",
188188 );
189 // Now change the message only
190 case.addCompareOutput(
191 \\export fn _start() noreturn {
192 \\ print();
193 \\
194 \\ exit();
195 \\}
196 \\
197 \\fn print() void {
198 \\ asm volatile ("syscall"
199 \\ :
200 \\ : [number] "{rax}" (0x2000004),
201 \\ [arg1] "{rdi}" (1),
202 \\ [arg2] "{rsi}" (@ptrToInt("What is up? This is a longer message that will force the data to be relocated in virtual address space.\n")),
203 \\ [arg3] "{rdx}" (104)
204 \\ : "memory"
205 \\ );
206 \\ return;
207 \\}
208 \\
209 \\fn exit() noreturn {
210 \\ asm volatile ("syscall"
211 \\ :
212 \\ : [number] "{rax}" (0x2000001),
213 \\ [arg1] "{rdi}" (0)
214 \\ : "memory"
215 \\ );
216 \\ unreachable;
217 \\}
218 ,
219 "What is up? This is a longer message that will force the data to be relocated in virtual address space.\n",
220 );
189221 }
190222
191223 {