Home | History | Annotate | Download | only in iterators.general
      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 // Tests workaround for  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64816.
     11 
     12 #include <string>
     13 #include "test_macros.h"
     14 
     15 void f(const std::string &s) { TEST_IGNORE_NODISCARD s.begin(); }
     16 
     17 #include <vector>
     18 
     19 void AppendTo(const std::vector<char> &v) { TEST_IGNORE_NODISCARD v.begin(); }
     20 
     21 int main() {}
     22