llvm-6502/test/C++Frontend/2003-06-08-VirtualFunctions.cpp
Chris Lattner cb12c508cb Fix link errors by adding main's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6706 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-16 12:25:11 +00:00

17 lines
174 B
C++

struct foo {
int y;
foo();
virtual int T() = 0;
};
struct bar : public foo {
bar();
int T() {}
};
foo::foo() : y(4) { }
bar::bar() { }
int main() { return 0; }