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 ddae4e7 commit 6d62db8Copy full SHA for 6d62db8
llvm/unittests/ADT/DenseMapTest.cpp
@@ -87,6 +87,14 @@ struct CtorTesterMapInfo {
87
CtorTester getTestKey(int i, CtorTester *) { return CtorTester(i); }
88
CtorTester getTestValue(int i, CtorTester *) { return CtorTester(42 + i); }
89
90
+std::optional<uint32_t> getTestKey(int i, std::optional<uint32_t> *) {
91
+ return i;
92
+}
93
+
94
+std::optional<uint32_t> getTestValue(int i, std::optional<uint32_t> *) {
95
+ return 42 + i;
96
97
98
// Test fixture, with helper functions implemented by forwarding to global
99
// function overloads selected by component types of the type parameter. This
100
// allows all of the map implementations to be tested with shared
0 commit comments