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 <stdio.h> 10 #include <stdlib.h> 11 #include <stdint.h> 12 13 struct First 14 { 15 int x; 16 int y; 17 float dummy; 18 First(int X, int Y) : 19 x(X), 20 y(Y), 21 dummy(3.14) 22 {} 23 }; 24 25 struct Second 26 { 27 int x; 28 float y; 29 Second(int X, float Y) : 30 x(X), 31 y(Y) 32 {} 33 }; 34 35 struct Third 36 { 37 int x; 38 char z; 39 Third(int X, char Z) : 40 x(X), 41 z(Z) 42 {} 43 }; 44 45 int main (int argc, const char * argv[]) 46 { 47 First first(12,34); 48 Second second(65,43.25); 49 Third *third = new Third(96,'E'); 50 51 first.dummy = 1; // Set break point at this line. 52 first.dummy = 2; 53 first.dummy = 3; 54 first.dummy = 4; 55 first.dummy = 5; 56 57 } 58 59