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
14struct i_am_cool
15{
16	int integer;
17	float floating;
18	char character;
19	i_am_cool(int I, float F, char C) :
20    integer(I), floating(F), character(C) {}
21	i_am_cool() : integer(1), floating(2), character('3') {}
22
23};
24
25struct i_am_cooler
26{
27	i_am_cool first_cool;
28	i_am_cool second_cool;
29	float floating;
30
31	i_am_cooler(int I1, int I2, float F1, float F2, char C1, char C2) :
32    first_cool(I1,F1,C1),
33    second_cool(I2,F2,C2),
34    floating((F1 + F2)/2) {}
35};
36
37int main (int argc, const char * argv[])
38{
39    i_am_cool one(1,3.14,'E');
40    i_am_cool two(4,2.71,'G');
41
42    i_am_cool* twoptr = &two;
43
44    i_am_cool array[5];
45
46    i_am_cooler three(10,4,1985,1/1/2011,'B','E'); // Set break point at this line.
47
48    two.integer = 1;
49
50    int dummy = 1;
51
52    return 0;
53}