X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=libstdc%2B%2B-v3%2Ftestsuite%2F20_util%2Fauto_ptr%2F4.cc;h=fb896e11f024b15fb65bd9ed4f9d7f7bff1d0d70;hb=83ffe9cde7fe0b4deb0d1b54175fd9b19c38179c;hp=06be2acb26692296c68d7a5d69d998ff01dec61c;hpb=405feeb871aeaab47856a361f8a65641b7e181b1;p=thirdparty%2Fgcc.git diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/4.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/4.cc index 06be2acb2669..fb896e11f024 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/4.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/4.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2000-2013 Free Software Foundation, Inc. +// Copyright (C) 2000-2023 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 @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include @@ -58,7 +60,6 @@ int test04() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; {/*lifetine scope*/ std::auto_ptr A_from_A(new A);