diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-16 12:25:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-16 12:25:11 +0000 |
commit | cb12c508cbdd377c56bdd831bc4e67f9fc06587a (patch) | |
tree | 132560962d2119f646a0072e8f5400eb8119ab46 /test/C++Frontend/2003-06-08-VirtualFunctions.cpp | |
parent | 1d1b0e56ce6d23fcd8d7bf3f85245198d681db16 (diff) |
Fix link errors by adding main's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend/2003-06-08-VirtualFunctions.cpp')
-rw-r--r-- | test/C++Frontend/2003-06-08-VirtualFunctions.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/test/C++Frontend/2003-06-08-VirtualFunctions.cpp b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp index ea32e19612..174e514403 100644 --- a/test/C++Frontend/2003-06-08-VirtualFunctions.cpp +++ b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp @@ -7,17 +7,10 @@ struct foo { }; struct bar : public foo { - //int x; bar(); int T() {} }; -//int bar::X() { return 0; } - -foo::foo() : y(4) { - -} - -bar::bar() { - -} +foo::foo() : y(4) { } +bar::bar() { } +int main() { return 0; } |