aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/C++Frontend/2003-06-08-BaseType.cpp2
-rw-r--r--test/C++Frontend/2003-06-08-VirtualFunctions.cpp13
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 b78af2acb8..e10a5a6329 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 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; }