-// { dg-options "-std=gnu++11" }
-// Copyright (C) 2011-2016 Free Software Foundation, Inc.
+// Copyright (C) 2011-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
#include <unordered_set>
#include <testsuite_allocator.h>
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
// libstdc++/50118
template class std::unordered_multiset<int, std::hash<int>, std::equal_to<int>,
__gnu_test::ExplicitConsAlloc<int>>;
+#if !defined __STRICT_ANSI__ && __cplusplus <= 201703L
template class std::unordered_multiset<int, std::hash<int>, std::equal_to<int>,
__gnu_test::ExplicitConsAlloc<char>>;
+#endif