Skip to content

Commit 7db25a9

Browse files
Accept signed or unsigned for unqualified char in reproducer
1 parent eace13b commit 7db25a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/unittests/Interpreter/InterpreterTest.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,10 @@ TEST(InterpreterTest, Value) {
341341
EXPECT_FALSE(V1.isManuallyAlloc());
342342

343343
Value V1b;
344-
llvm::cantFail(Interp->ParseAndExecute("char x = 42;"));
344+
llvm::cantFail(Interp->ParseAndExecute("char c = 42;"));
345345
llvm::cantFail(Interp->ParseAndExecute("c", &V1b));
346-
EXPECT_TRUE(V1b.getKind() == Value::K_Char_S);
346+
EXPECT_TRUE(V1b.getKind() == Value::K_Char_S ||
347+
V1b.getKind() == Value::K_Char_U);
347348

348349
Value V2;
349350
llvm::cantFail(Interp->ParseAndExecute("double y = 3.14;"));

0 commit comments

Comments
 (0)