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 eace13b commit 7db25a9Copy full SHA for 7db25a9
clang/unittests/Interpreter/InterpreterTest.cpp
@@ -341,9 +341,10 @@ TEST(InterpreterTest, Value) {
341
EXPECT_FALSE(V1.isManuallyAlloc());
342
343
Value V1b;
344
- llvm::cantFail(Interp->ParseAndExecute("char x = 42;"));
+ llvm::cantFail(Interp->ParseAndExecute("char c = 42;"));
345
llvm::cantFail(Interp->ParseAndExecute("c", &V1b));
346
- EXPECT_TRUE(V1b.getKind() == Value::K_Char_S);
+ EXPECT_TRUE(V1b.getKind() == Value::K_Char_S ||
347
+ V1b.getKind() == Value::K_Char_U);
348
349
Value V2;
350
llvm::cantFail(Interp->ParseAndExecute("double y = 3.14;"));
0 commit comments