]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/ext/vstring/range_access.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / ext / vstring / range_access.cc
index 6efd1c7515c79d77475e3d81314f8f6820dc7a50..9fb7ea1302a845c2d1e90bd870832f72a1eab04d 100644 (file)
@@ -1,7 +1,6 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
+// { dg-do compile { target c++11 } }
 
-// Copyright (C) 2010-2013 Free Software Foundation, Inc.
+// Copyright (C) 2010-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
@@ -26,12 +25,10 @@ void
 test01()
 {
   __gnu_cxx::__vstring s("Hello, World!");
-  std::begin(s);
-  std::end(s);
+  (void) std::begin(s);
+  (void) std::end(s);
 
-#ifdef _GLIBCXX_USE_WCHAR_T
   __gnu_cxx::__wvstring ws(L"Hello, World!");
-  std::begin(ws);
-  std::end(ws);
-#endif
+  (void) std::begin(ws);
+  (void) std::end(ws);
 }