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 struct Pair { 10 int x; 11 int y; 12 13 Pair(int _x, int _y) : x(_x), y(_y) {} 14 }; 15 16 int addPair(Pair p) 17 { 18 return p.x + p.y; // Set break point at this line. 19 } 20 21 int main() { 22 Pair p1(3,-3); 23 return addPair(p1); 24 } 25