Fix link errors by adding main's
authorChris Lattner <sabre@nondot.org>
Mon, 16 Jun 2003 12:25:11 +0000 (12:25 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Jun 2003 12:25:11 +0000 (12:25 +0000)
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
test/C++Frontend/2003-06-08-VirtualFunctions.cpp

index b78af2acb833f435cf757da3c3eb045a78128303..e10a5a6329806f66ce4d2aaa47e3c461625c0dac 100644 (file)
@@ -15,3 +15,5 @@ struct bar : public foo {
 bar::bar() {
 
 }
+
+int main() { return 0; }
index ea32e1961283702ca9bb1ced7fab6db2ca579355..174e514403860a4916b377986821829a37a728b6 100644 (file)
@@ -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; }