libstdc++: Add explicit -std=gnu++98 to tests that use { target c++98_only }

libstdc++-v3/ChangeLog:

	* testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc:
	Add dg-options to restrict the test to C++98 mode.
	* testsuite/23_containers/list/requirements/explicit_instantiation/2.cc:
	Likewise.
This commit is contained in:
Jonathan Wakely 2023-09-01 21:20:55 +01:00
parent c34ad4bc19
commit 0eb35092de
2 changed files with 2 additions and 0 deletions

View file

@ -21,6 +21,7 @@
#include <deque>
#include <testsuite_api.h>
// { dg-options "-std=gnu++98" }
// { dg-do compile { target c++98_only } }
// N.B. Since C++11 we cannot instantiate with T == NonDefaultConstructible

View file

@ -21,6 +21,7 @@
#include <list>
#include <testsuite_api.h>
// { dg-options "-std=gnu++98" }
// { dg-do compile { target c++98_only } }
// N.B. Since C++11 we cannot instantiate with T == NonDefaultConstructible