[libcxx] [test] Avoid -Wunused-local-typedef in node_handle.pass.cpp.
authorBilly Robert O'Neal III <bion@microsoft.com>
Wed, 8 Aug 2018 04:24:47 +0000 (04:24 +0000)
committerBilly Robert O'Neal III <bion@microsoft.com>
Wed, 8 Aug 2018 04:24:47 +0000 (04:24 +0000)
llvm-svn: 339218

libcxx/test/std/containers/container.node/node_handle.pass.cpp

index 6314ec1fb771adac37e0b30c143273c6a35e092e..1c815a4682dd6a4425a8f70f8b971045097d9f0d 100644 (file)
@@ -121,10 +121,12 @@ void test_node_handle_operations_multi()
     assert(nt2.empty());
 }
 
+template <class> void test_typedef() {}
+
 template <class Container>
 void test_insert_return_type()
 {
-    using irt_type = typename Container::insert_return_type;
+    test_typedef<typename Container::insert_return_type>();
 }
 
 int main()