1 //===-- main.cpp ------------------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <stdint.h>
13
14 struct First
15 {
16 int x;
17 int y;
18 float dummy;
FirstFirst19 First(int X, int Y) :
20 x(X),
21 y(Y),
22 dummy(3.14)
23 {}
24 };
25
26 struct Second
27 {
28 int x;
29 float y;
SecondSecond30 Second(int X, float Y) :
31 x(X),
32 y(Y)
33 {}
34 };
35
36 struct Third
37 {
38 int x;
39 char z;
ThirdThird40 Third(int X, char Z) :
41 x(X),
42 z(Z)
43 {}
44 };
45
main(int argc,const char * argv[])46 int main (int argc, const char * argv[])
47 {
48 First first(12,34);
49 Second second(65,43.25);
50 Third *third = new Third(96,'E');
51
52 first.dummy = 1; // Set break point at this line.
53 first.dummy = 2;
54 first.dummy = 3;
55 first.dummy = 4;
56 first.dummy = 5;
57
58 }
59
60