Skip to content

Commit 9010b13

Browse files
committed
contrib: c++ify test stubs after switching to c++ compilers
1 parent 261f770 commit 9010b13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contrib/devtools/test-security-check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
def write_testcode(filename):
1616
with open(filename, 'w', encoding="utf8") as f:
1717
f.write('''
18-
#include <stdio.h>
18+
#include <cstdio>
1919
int main()
2020
{
21-
printf("the quick brown fox jumps over the lazy god\\n");
21+
std::printf("the quick brown fox jumps over the lazy god\\n");
2222
return 0;
2323
}
2424
''')

contrib/devtools/test-symbol-check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ def test_ELF(self):
5757
executable = 'test3'
5858
with open(source, 'w', encoding="utf8") as f:
5959
f.write('''
60-
#include <stdio.h>
60+
#include <cstdio>
6161
6262
int main()
6363
{
64-
printf("42");
64+
std::printf("42");
6565
return 0;
6666
}
6767
''')

0 commit comments

Comments
 (0)