1 //===-- main.cpp ------------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
18 i_am_cool(int I, float F, char C) :
19 integer(I), floating(F), character(C) {}
20 i_am_cool() : integer(1), floating(2), character('3') {}
27 i_am_cool second_cool;
30 i_am_cooler(int I1, int I2, float F1, float F2, char C1, char C2) :
32 second_cool(I2,F2,C2),
33 floating((F1 + F2)/2) {}
36 int main (int argc, const char * argv[])
38 i_am_cool one(1,3.14,'E');
39 i_am_cool two(4,2.71,'G');
41 i_am_cool* twoptr = &two;
45 i_am_cooler three(10,4,1985,1/1/2011,'B','E'); // Set break point at this line.