Home | History | Annotate | Download | only in string.modifiers
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // <string>
     11 
     12 // iterator insert(const_iterator p, size_type n, charT c);
     13 
     14 #if _LIBCPP_DEBUG >= 1
     15 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
     16 #endif
     17 
     18 #include <string>
     19 #include <cassert>
     20 
     21 int main()
     22 {
     23 #if _LIBCPP_DEBUG >= 1
     24     {
     25         std::string s;
     26         std::string s2;
     27         s.insert(s2.begin(), 1, 'a');
     28         assert(false);
     29     }
     30 #endif
     31 }
     32