summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-16 12:25:11 +0000
committerChris Lattner <sabre@nondot.org>2003-06-16 12:25:11 +0000
commit0834ee4d984fd9ab1b7080529a34e781457b8d06 (patch)
treea5f9dbb849471620a485cd8d4c8f2b2072ef6011
parent629669bd5bc437ca95f78e4106a011f40acd31c5 (diff)
downloadbcm5719-llvm-0834ee4d984fd9ab1b7080529a34e781457b8d06.tar.gz
bcm5719-llvm-0834ee4d984fd9ab1b7080529a34e781457b8d06.zip
Fix link errors by adding main's
llvm-svn: 6706
-rw-r--r--llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp2
-rw-r--r--llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp13
2 files changed, 5 insertions, 10 deletions
diff --git a/llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp b/llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp
index b78af2acb83..e10a5a63298 100644
--- a/llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp
+++ b/llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp
@@ -15,3 +15,5 @@ struct bar : public foo {
bar::bar() {
}
+
+int main() { return 0; }
diff --git a/llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp b/llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp
index ea32e196128..174e5144038 100644
--- a/llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp
+++ b/llvm/test/Regression/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; }
OpenPOWER on IntegriCloud