Skip to content

Commit 26321c9

Browse files
committed
Re-add deleted test case with warning suppress
1 parent 499c838 commit 26321c9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/test/return_params_abi.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ namespace winrt
1010

1111
using namespace winrt;
1212

13+
namespace
14+
{
15+
#ifdef __clang__
16+
#pragma clang diagnostic push
17+
#pragma clang diagnostic ignored "-Wunused-function"
18+
#endif
19+
hstring to_hstring(::IInspectable* raw)
20+
{
21+
winrt::IInspectable object;
22+
copy_from_abi(object, raw);
23+
return object.as<IStringable>().ToString();
24+
}
25+
#ifdef __clang__
26+
#pragma clang diagnostic pop
27+
#endif
28+
}
29+
1330
TEST_CASE("return_params_abi")
1431
{
1532
Class object;

0 commit comments

Comments
 (0)