summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/auto/main.cpp
blob: d411af67911988130f558820dd4c3047f15acc0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include <string>

int main()
{
  std::string helloworld("hello world");

  // Ensure std::string copy constructor is present in the binary, as we will
  // use it in an expression.
  std::string other = helloworld;

  return 0; // break here
}
OpenPOWER on IntegriCloud