1b1e72ecaSNico Weber //===----------------------------------------------------------------------===//
2b1e72ecaSNico Weber //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6b1e72ecaSNico Weber //
7b1e72ecaSNico Weber //===----------------------------------------------------------------------===//
8b1e72ecaSNico Weber 
9b1e72ecaSNico Weber // Tests workaround for  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64816.
10b1e72ecaSNico Weber 
11b1e72ecaSNico Weber #include <string>
12ba40b056SBilly Robert O'Neal III #include "test_macros.h"
13b1e72ecaSNico Weber 
f(const std::string & s)14ba40b056SBilly Robert O'Neal III void f(const std::string &s) { TEST_IGNORE_NODISCARD s.begin(); }
15b1e72ecaSNico Weber 
16b1e72ecaSNico Weber #include <vector>
17b1e72ecaSNico Weber 
AppendTo(const std::vector<char> & v)18ba40b056SBilly Robert O'Neal III void AppendTo(const std::vector<char> &v) { TEST_IGNORE_NODISCARD v.begin(); }
19b1e72ecaSNico Weber 
main(int,char **)20*2df59c50SJF Bastien int main(int, char**) {
21*2df59c50SJF Bastien   return 0;
22*2df59c50SJF Bastien }
23