Zhang Xiongpang: Add definitions for const data members. Fixes http://llvm.org/bugs/show_bug.cgi?id=14585.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@170026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
#include <regex>
|
||||
#include <type_traits>
|
||||
|
||||
template <class _Tp>
|
||||
void where(const _Tp &) {}
|
||||
|
||||
template <class CharT>
|
||||
void
|
||||
test()
|
||||
@@ -43,6 +46,16 @@ test()
|
||||
static_assert((BR::awk == std::regex_constants::awk), "");
|
||||
static_assert((BR::grep == std::regex_constants::grep), "");
|
||||
static_assert((BR::egrep == std::regex_constants::egrep), "");
|
||||
where(BR::icase);
|
||||
where(BR::nosubs);
|
||||
where(BR::optimize);
|
||||
where(BR::collate);
|
||||
where(BR::ECMAScript);
|
||||
where(BR::basic);
|
||||
where(BR::extended);
|
||||
where(BR::awk);
|
||||
where(BR::grep);
|
||||
where(BR::egrep);
|
||||
}
|
||||
|
||||
int main()
|
||||
|
Reference in New Issue
Block a user