1 //===-- main.cpp ------------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
17 Shape() : dummy(true) {}
20 struct Rectangle : public Shape {
23 Rectangle(int W = 3, int H = 5) : w(W), h(H) {}
26 struct Circle : public Shape {
28 Circle(int R = 6) : r(R) {}
31 int main (int argc, const char * argv[])
41 Circle *c_ptr = new Circle(8);
42 Rectangle *r_ptr = new Rectangle(9,7);
44 return 0; // Set break point at this line.