From cb12c508cbdd377c56bdd831bc4e67f9fc06587a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 16 Jun 2003 12:25:11 +0000 Subject: [PATCH] Fix link errors by adding main's git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6706 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/C++Frontend/2003-06-08-BaseType.cpp | 2 ++ test/C++Frontend/2003-06-08-VirtualFunctions.cpp | 13 +++---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/test/C++Frontend/2003-06-08-BaseType.cpp b/test/C++Frontend/2003-06-08-BaseType.cpp index b78af2acb83..e10a5a63298 100644 --- a/test/C++Frontend/2003-06-08-BaseType.cpp +++ b/test/C++Frontend/2003-06-08-BaseType.cpp @@ -15,3 +15,5 @@ struct bar : public foo { bar::bar() { } + +int main() { return 0; } diff --git a/test/C++Frontend/2003-06-08-VirtualFunctions.cpp b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp index ea32e196128..174e5144038 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; } -- 2.34.1