// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
-// Copyright (C) 2005-2021 Free Software Foundation, Inc.
+// Copyright (C) 2005-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
// target_type and target() functions
const function<int(float)>& f1c = f1;
+#if __cpp_rtti
VERIFY( typeid(int(*)(float)) == f1.target_type() );
+#endif
VERIFY( f2.target<int(*)(float)>() != 0 );
VERIFY( *f2.target<int(*)(float)>() == &truncate_float );
VERIFY( f1c.target<int(*)(float)>() != 0 );