]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/28_regex/basic_regex/ctors/extended/string_range_01_02_03.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 28_regex / basic_regex / ctors / extended / string_range_01_02_03.cc
index 8d7e170a0dd3dc8593570a1708c238d431698d7e..5af568971ca52f7f33dfe3dcde9d4ce10b99cf6b 100644 (file)
@@ -1,9 +1,9 @@
-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target c++11 } }
 
 //
 // 2010-06-16  Stephen M. Webb <stephen.webb@bregmasoft.ca>
 //
-// Copyright (C) 2010-2014 Free Software Foundation, Inc.
+// Copyright (C) 2010-2020 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
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
-       try
-       {
-               std::regex  re("a{1,2,3}", std::regex::extended);
-       }
-       catch (std::regex_error& ex)
-       {
-               VERIFY( ex.code() == std::regex_constants::error_brace );
-       }
+  try
+    {
+      std::regex  re("a{1,2,3}", std::regex::extended);
+    }
+  catch (std::regex_error& ex)
+    {
+      VERIFY( ex.code() == std::regex_constants::error_brace );
+    }
 }