From a95fe92dafbd2a2e718bb4aac090a7156a46e79b Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 20 Sep 2022 15:44:16 -0700 Subject: Use `printf` in tests. (#2406) Co-authored-by: Yong He --- tests/cpu-program/cpu-hello-world.slang | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/cpu-program/cpu-hello-world.slang') diff --git a/tests/cpu-program/cpu-hello-world.slang b/tests/cpu-program/cpu-hello-world.slang index 9385b239c..f91e354bc 100644 --- a/tests/cpu-program/cpu-hello-world.slang +++ b/tests/cpu-program/cpu-hello-world.slang @@ -1,9 +1,7 @@ //TEST:EXECUTABLE: -__target_intrinsic(cpp, "printf(\"%s\\n\", ($0).getBuffer())") -void writeln(String text); public __extern_cpp int main() { - writeln("Hello World."); + printf("Hello World.\n"); return 0; } \ No newline at end of file -- cgit v1.2.3