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 f(const std::string & s)15void f(const std::string &s) { TEST_IGNORE_NODISCARD s.begin(); } 16 17 #include <vector> 18 AppendTo(const std::vector<char> & v)19void AppendTo(const std::vector<char> &v) { TEST_IGNORE_NODISCARD v.begin(); } 20 main()21int main() {} 22