1 //===-- main.cpp ------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include <string>
10 
11 int main()
12 {
13   std::string helloworld("hello world");
14 
15   // Ensure std::string copy constructor is present in the binary, as we will
16   // use it in an expression.
17   std::string other = helloworld;
18 
19   return 0; // break here
20 }
21