summaryrefslogtreecommitdiffstats
path: root/libcxx/test/re/re.regex/re.regex.construct
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-08-12 21:56:02 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-08-12 21:56:02 +0000
commit54976f2619ab9ccd321acf46dde4c15baeb84694 (patch)
tree43d2d54cc7b628da57bae18fb1031d29fb32896f /libcxx/test/re/re.regex/re.regex.construct
parentc53dd2ac01eb3044da996ad5b8d30ef85a18cda5 (diff)
downloadbcm5719-llvm-54976f2619ab9ccd321acf46dde4c15baeb84694.tar.gz
bcm5719-llvm-54976f2619ab9ccd321acf46dde4c15baeb84694.zip
Fixed PR10574: http://llvm.org/bugs/show_bug.cgi?id=10574
llvm-svn: 137522
Diffstat (limited to 'libcxx/test/re/re.regex/re.regex.construct')
-rw-r--r--libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp b/libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp
index 60636635a7a..70d28df370d 100644
--- a/libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp
+++ b/libcxx/test/re/re.regex/re.regex.construct/il_flg.pass.cpp
@@ -17,7 +17,7 @@
#include <regex>
#include <cassert>
-#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
void
test(std::initializer_list<char> il, std::regex_constants::syntax_option_type f, unsigned mc)
@@ -27,11 +27,11 @@ test(std::initializer_list<char> il, std::regex_constants::syntax_option_type f,
assert(r.mark_count() == mc);
}
-#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
int main()
{
-#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
std::string s1("\\(a\\)");
std::string s2("\\(a[bc]\\)");
std::string s3("\\(a\\([bc]\\)\\)");
@@ -66,5 +66,5 @@ int main()
test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::egrep, 0);
test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::egrep, 0);
test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::egrep, 2);
-#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
+#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
}
OpenPOWER on IntegriCloud