~ubuntu-branches/ubuntu/trusty/libc++/trusty

« back to all changes in this revision

Viewing changes to libcxx/test/strings/basic.string/string.capacity/max_size.pass.cpp

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-02 19:43:49 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130902194349-top6vl3nq767uhdm
Tags: 1.0~svn189766-1
New snapshot release

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include <string>
15
15
#include <cassert>
16
16
 
 
17
#include "../min_allocator.h"
 
18
 
17
19
template <class S>
18
20
void
19
21
test(const S& s)
23
25
 
24
26
int main()
25
27
{
 
28
    {
26
29
    typedef std::string S;
27
30
    test(S());
28
31
    test(S("123"));
29
32
    test(S("12345678901234567890123456789012345678901234567890"));
 
33
    }
 
34
#if __cplusplus >= 201103L
 
35
    {
 
36
    typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
 
37
    test(S());
 
38
    test(S("123"));
 
39
    test(S("12345678901234567890123456789012345678901234567890"));
 
40
    }
 
41
#endif
30
42
}