X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libstdc%2B%2B-v3%2Ftestsuite%2Ftr1%2F7_regular_expressions%2Fbasic_regex%2Fctors%2Fchar%2Fstring.cc;h=39cce6c6472611906f8276f30d2157125bb5d885;hp=c2fb2c7d51c39b9fd4d8e0f309ef42960b56c517;hb=e375726f9c697a52cdb2a026dffeb2165937a830;hpb=e0b61fdb99c1d8584889b2f61b3a5e7960272154 diff --git a/libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/string.cc b/libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/string.cc index c2fb2c7d51c..39cce6c6472 100644 --- a/libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/string.cc +++ b/libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/string.cc @@ -25,6 +25,7 @@ #include #include #include +#include // Tests C++ string constructor of the basic_regex class. void test01() @@ -35,9 +36,19 @@ void test01() test_type re(s); } +void test02() +{ + typedef std::tr1::basic_regex test_type; + typedef __gnu_test::tracker_allocator alloc_type; + + std::basic_string, alloc_type> s("a*b"); + test_type re(s); +} + int main() { test01(); + test02(); return 0; };