Files
compiler-explorer/test/cases/vc-regex-example.cpp
T
Nicole Mazzuca 9ddf22f090 Support Visual C++ and Windows well
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:

  - switch from /FAsc to /FA
  - order functions in file order
  - support demangling win32-style identifiers with undname
  - clang++ and vc++ on win32 host are both supported
2018-07-28 15:18:43 -07:00

14 lines
486 B
C++
Generated

// compile flags:
// [x86] cl /FA /EHsc /c vc-regex-example.cpp /Favc-regex.asm
// then, delete all non-regexTest lines
#include <string>
#include <regex>
void regexTest() {
std::string s = "Some people, when confronted with a problem, think "
"\"I know, I'll use regular expressions.\" "
"Now they have two problems.";
auto self_regex = std::regex("REGULAR EXPRESSIONS",
std::regex_constants::ECMAScript | std::regex_constants::icase);
}