@@ -1368,6 +1368,9 @@ GLIBCXX_3.4.20 {
# std::__throw_out_of_range_fmt(char const*, ...)
_ZSt24__throw_out_of_range_fmtPKcz;
+ # std::regex_error::regex_error(std::regex_constants::error_type)
+ _ZNSt11regex_errorC[01]ENSt15regex_constants10error_typeE;
+
} GLIBCXX_3.4.19;
# Symbols in the support library (libsupc++) have their own tag.
@@ -1,5 +1,4 @@
// { dg-options "-std=gnu++0x" }
-// { dg-do compile }
// 2010-05-20 Paolo Carlini <paolo.carlini@oracle.com>
@@ -1,5 +1,4 @@
// { dg-options "-std=gnu++0x" }
-// { dg-do compile }
// Copyright (C) 2011-2013 Free Software Foundation, Inc.
//
@@ -1,5 +1,4 @@
// { dg-options "-std=gnu++0x" }
-// { dg-do compile }
// Copyright (C) 2011-2013 Free Software Foundation, Inc.
//
@@ -54,7 +53,7 @@ void test01()
void test02()
{
- typedef std::allocator_traits<alloc1<X>> traits_type;
+ typedef std::allocator_traits<alloc2<X>> traits_type;
traits_type::allocator_type a{1};
const traits_type::allocator_type& a2
= traits_type::select_on_container_copy_construction(a);
@@ -1,4 +1,3 @@
-// { dg-do compile }
// { dg-options "-std=c++0x" }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com>
@@ -33,7 +32,7 @@ test01()
std::regex re("(wee|week)(knights|night)", std::regex::extended);
VERIFY( re.flags() == std::regex::extended );
- VERIFY( re.mark_count() == 0 );
+ VERIFY( re.mark_count() == 2 );
}
int main()
@@ -1,5 +1,4 @@
// { dg-options "-std=gnu++0x" }
-// { dg-do compile }
// Copyright (C) 2008-2013 Free Software Foundation, Inc.
//
@@ -1,5 +1,4 @@
// { dg-options "-std=c++0x" }
-// { dg-do compile }
//
// 2009-06-17 Stephen M. Webb <stephen.webb@xandros.com>
//
@@ -1,4 +1,3 @@
-// { dg-do compile }
// { dg-options "-std=c++0x" }
//
@@ -27,9 +26,7 @@
#include <string>
#include <testsuite_hooks.h>
-
-void
-test01()
+int main()
{
bool test __attribute__((unused)) = true;
@@ -39,8 +36,8 @@ test01()
value_type test_data[] = "cabbage";
sub_match_type sm;
- sm.first = test_data + 0;
- sm.second = test_data + sizeof(test_data)/sizeof(value_type);
+ sm.first = std::begin(test_data);
+ sm.second = std::end(test_data) - 1;
sm.matched = true;
string_type sm_string = sm;
@@ -1,4 +1,3 @@
-// { dg-do compile }
// { dg-options "-std=c++0x" }
//
@@ -27,9 +26,7 @@
#include <string>
#include <testsuite_hooks.h>
-
-void
-test01()
+int main()
{
bool test __attribute__((unused)) = true;
@@ -39,8 +36,8 @@ test01()
value_type test_data[] = L"cabbage";
sub_match_type sm;
- sm.first = test_data + 0;
- sm.second = test_data + sizeof(test_data)/sizeof(value_type);
+ sm.first = std::begin(test_data);
+ sm.second = std::end(test_data) - 1;
sm.matched = true;
string_type sm_string = sm;
@@ -1,4 +1,3 @@
-// { dg-do compile }
// { dg-options "-std=c++0x" }
//
@@ -47,3 +46,8 @@ test01()
VERIFY( sm1.length() == test_len );
VERIFY( sm2.length() == 0 );
}
+
+int main()
+{
+ test01();
+}
deleted file mode 100644
@@ -1,42 +0,0 @@
-// { dg-do compile }
-
-// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com>
-//
-// Copyright (C) 2007-2013 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-// 7.8.2 basic_regex constructors
-
-#include <tr1/regex>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
- bool test __attribute__((unused)) = true;
-
- std::tr1::regex re("(wee|week)(knights|night)", std::tr1::regex::extended);
-
- VERIFY( re.flags() == std::tr1::regex::extended );
- VERIFY( re.mark_count() == 0 );
-}
-
-int main()
-{
- test01();
- return 0;
-}