Skip to content

Commit bd7645f

Browse files
authored
try with later version
1 parent 26faea3 commit bd7645f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

unittests/CppInterOp/InterpreterTest.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,11 @@ TEST(InterpreterTest, Evaluate) {
6868
//EXPECT_TRUE(Cpp::Evaluate(I, "__cplusplus;") == 201402);
6969
// Due to a deficiency in the clang-repl implementation to get the value we
7070
// always must omit the ;
71-
Cpp::CreateInterpreter();
72-
EXPECT_TRUE(Cpp::Evaluate("__cplusplus") == 201402);
71+
std::vector<const char*> Args = {
72+
"-std=c++20"
73+
};
74+
Cpp::CreateInterpreter(Args);
75+
EXPECT_TRUE(Cpp::Evaluate("__cplusplus") == 202002);
7376

7477
bool HadError;
7578
EXPECT_TRUE(Cpp::Evaluate("#error", &HadError) == (intptr_t)~0UL);

0 commit comments

Comments
 (0)