Search:
Login
Help/Guide
About Trac
Preferences
Wiki
Timeline
Roadmap
View Tickets
Search
Context Navigation
Back to Ticket #5911
Ticket #5911
: regex-test.cpp
File regex-test.cpp,
260 bytes
(added by
noloader@…
,
11 years ago
)
Sample program to demonstrate crash
Line
1
// g++ -D_GLIBCXX_DEBUG -DDEBUG=1 -g3 -ggdb -O0 regex-test.cpp -o regex-test.exe -lboost_regex
2
3
#include
<boost/regex.hpp>
4
5
int
main
(
int
,
char
**
)
6
{
7
const
boost
::
regex
re
(
"^[a-zA-Z]*"
);
8
bool
match
=
boost
::
regex_match
(
"asdf"
,
re
);
9
10
return
(
int
)
!
match
;
11
}
12
Download in other formats:
Original Format