We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26faea3 commit bd7645fCopy full SHA for bd7645f
unittests/CppInterOp/InterpreterTest.cpp
@@ -68,8 +68,11 @@ TEST(InterpreterTest, Evaluate) {
68
//EXPECT_TRUE(Cpp::Evaluate(I, "__cplusplus;") == 201402);
69
// Due to a deficiency in the clang-repl implementation to get the value we
70
// always must omit the ;
71
- Cpp::CreateInterpreter();
72
- EXPECT_TRUE(Cpp::Evaluate("__cplusplus") == 201402);
+ std::vector<const char*> Args = {
+ "-std=c++20"
73
+ };
74
+ Cpp::CreateInterpreter(Args);
75
+ EXPECT_TRUE(Cpp::Evaluate("__cplusplus") == 202002);
76
77
bool HadError;
78
EXPECT_TRUE(Cpp::Evaluate("#error", &HadError) == (intptr_t)~0UL);
0 commit comments