Skip to content

Commit 3ade711

Browse files
Accept signed or unsigned for unqualified char in reproducer
1 parent fa3d6e1 commit 3ade711

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/unittests/Interpreter/InterpreterTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ TEST(InterpreterTest, Value) {
343343
Value V1b;
344344
llvm::cantFail(Interp->ParseAndExecute("char x = 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)