X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=libstdc%2B%2B-v3%2Ftestsuite%2Fexperimental%2Fstring_view%2Foperations%2Frfind%2Fwchar_t%2F3.cc;h=66cb79112b1aa47647f6fbad83daca2893c0a370;hb=7adcbafe45f8001b698967defe682687b52c0007;hp=baf5d17bc805bd0fbe56ab3e0eb44e134472011a;hpb=5624e564d2239a74daa140e726b7b229d6e9a115;p=thirdparty%2Fgcc.git diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc index baf5d17bc805..66cb79112b1a 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc @@ -1,6 +1,6 @@ -// { dg-options "-std=gnu++14" } +// { dg-do run { target c++14 } } -// Copyright (C) 2013-2015 Free Software Foundation, Inc. +// Copyright (C) 2013-2022 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 @@ -22,11 +22,9 @@ // basic_string_view::find_last_not_of -bool +void test03() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; std::experimental::wstring_view::size_type pos; csize_type npos = std::experimental::wstring_view::npos; @@ -58,9 +56,8 @@ test03() VERIFY( pos == 0 ); pos = z.find_last_not_of(L"Xa"); VERIFY( pos == 1 ); - - return test; } + int main() {