We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86bec79 commit 1a1aad9Copy full SHA for 1a1aad9
llvm/unittests/ADT/FunctionRefTest.cpp
@@ -49,9 +49,9 @@ TEST(FunctionRefTest, BadCopy) {
49
}
50
51
// Test that overloads on function_refs are resolved as expected.
52
-const char *returns(StringRef) { return "not a function"; }
53
-const char *returns(function_ref<double()> F) { return "number"; }
54
-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"; }
55
56
TEST(FunctionRefTest, SFINAE) {
57
EXPECT_EQ("not a function", returns("boo!"));
0 commit comments