1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[ADT] Fix accidental pointer comparison in test

This commit is contained in:
Sam McCall 2020-10-27 18:11:45 +01:00
parent c4569f08c7
commit 25cd2447cf

View File

@ -49,9 +49,9 @@ TEST(FunctionRefTest, BadCopy) {
}
// Test that overloads on function_refs are resolved as expected.
const char *returns(StringRef) { return "not a function"; }
const char *returns(function_ref<double()> F) { return "number"; }
const char *returns(function_ref<StringRef()> F) { return "string"; }
std::string returns(StringRef) { return "not a function"; }
std::string returns(function_ref<double()> F) { return "number"; }
std::string returns(function_ref<StringRef()> F) { return "string"; }
TEST(FunctionRefTest, SFINAE) {
EXPECT_EQ("not a function", returns("boo!"));