diff options
| author | Yong He <yonghe@outlook.com> | 2022-09-20 15:44:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-20 15:44:16 -0700 |
| commit | a95fe92dafbd2a2e718bb4aac090a7156a46e79b (patch) | |
| tree | e6498b703fee843921e32da005fb00be85e23eec /tests/cpu-program/cpu-hello-world.slang | |
| parent | e60a6fd40cbc0f0d8548f0160bb92437e3d79509 (diff) | |
Use `printf` in tests. (#2406)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/cpu-program/cpu-hello-world.slang')
| -rw-r--r-- | tests/cpu-program/cpu-hello-world.slang | 4 |
1 files changed, 1 insertions, 3 deletions
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 |
