-// { dg-options "-std=gnu++11" }
-// { dg-require-atomic-builtins "" }
+// { dg-options "-Wno-deprecated-declarations" }
+// { dg-do run { target { c++11_only || c++14_only } } }
-// Copyright (C) 2014 Free Software Foundation, Inc.
+// Copyright (C) 2014-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
#include <exception>
#include <stdlib.h>
-#ifdef _GLIBCXX_USE_C99
+#if _GLIBCXX_USE_C99_STDLIB
void unexpected() { _Exit(0); }
void f() throw()
int main()
{
-#ifdef _GLIBCXX_USE_C99
+#if _GLIBCXX_USE_C99_STDLIB
f();
#endif
}