]> git.draconx.ca Git - dxcommon.git/blob - t/printfchk.c
DX_C_ALIGNAS: Work around bash-5 parsing bug.
[dxcommon.git] / t / printfchk.c
1 /*
2  * Copyright © 2023 Nick Bowler
3  *
4  * Runtime check of printf behaviour for the test suite.  Some very old printf
5  * implementations return 0 on success instead of the number of bytes written.
6  *
7  * License WTFPL2: Do What The Fuck You Want To Public License, version 2.
8  * This is free software: you are free to do what the fuck you want to.
9  * There is NO WARRANTY, to the extent permitted by law.
10  */
11 #include <stdio.h>
12
13 int main(void)
14 {
15         return printf("hello\n") == 0;
16 }