Skip to content

Commit d5079e8

Browse files
committed
cout patch
1 parent 0ce3808 commit d5079e8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

interpreter/CppInterOp/unittests/CppInterOp/FunctionReflectionTest.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,8 @@ TEST(FunctionReflectionTest, GetFunctionCallWrapper) {
876876
GetAllTopLevelDecls(code, Decls);
877877

878878
Interp->process(R"(
879-
#include <string>
880-
void f2(std::string &s) { printf("%s", s.c_str()); };
879+
#include <iostream>
880+
void f2(std::string &s) { std::cout << s.c_str(); };
881881
)");
882882

883883
Interp->process(R"(
@@ -922,10 +922,11 @@ TEST(FunctionReflectionTest, GetFunctionCallWrapper) {
922922

923923
// FIXME: Do we need to support private ctors?
924924
Interp->process(R"(
925+
#include <iostream>
925926
class C {
926927
public:
927-
C() { printf("Default Ctor Called\n"); }
928-
~C() { printf("Dtor Called\n"); }
928+
C() { std::cout << "Default Ctor Called\n"; }
929+
~C() { std::cout << "Dtor Called\n"; }
929930
};
930931
)");
931932

0 commit comments

Comments
 (0)