Skip to content

Commit da8847d

Browse files
Replacing iostream by cstdio and cout by printf
1 parent b15c6a5 commit da8847d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Interop/SwiftToCxx/functions/swift-functions-errors-execution.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// REQUIRES: executable_test
1212

1313
#include <cassert>
14-
#include <iostream>
14+
#include <cstdio>
1515
#include "functions.h"
1616

1717
int main() {
@@ -22,17 +22,17 @@ int main() {
2222
try {
2323
Functions::emptyThrowFunction();
2424
} catch (swift::_impl::NaiveException& e) {
25-
std::cout << e.getMessage() << "\n";
25+
printf("%s\n", e.getMessage());
2626
}
2727
try {
2828
Functions::throwFunction();
2929
} catch (swift::_impl::NaiveException& e) {
30-
std::cout << e.getMessage() << "\n";
30+
printf("%s\n", e.getMessage());
3131
}
3232
try {
3333
Functions::throwFunctionWithReturn();
3434
} catch (swift::_impl::NaiveException& e) {
35-
std::cout << e.getMessage() << "\n";
35+
printf("%s\n", e.getMessage());
3636
}
3737

3838
return 0;

0 commit comments

Comments
 (0)