mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 10:36:07 -06:00
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
14 lines
486 B
C++
Generated
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);
|
|
}
|