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 //===----------------------------------------------------------------------===//
16 Shape() : dummy(true) {}
19 struct Rectangle : public Shape {
22 Rectangle(int W = 3, int H = 5) : w(W), h(H) {}
25 struct Circle : public Shape {
27 Circle(int R = 6) : r(R) {}
30 int main (int argc, const char * argv[])
40 Circle *c_ptr = new Circle(8);
41 Rectangle *r_ptr = new Rectangle(9,7);
43 return 0; // Set break point at this line.