aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2007-09-25 21:20:42 +0000
committerTanya Lattner <tonic@nondot.org>2007-09-25 21:20:42 +0000
commit88c4f5ceadb432ac1eef7665dc4e7672b67f4752 (patch)
tree9403dcdecc05d280d8f3121a5f51aa1bd6fced34
parentb13b5818b5e97fffffcf3ddd5627137fd07a7f43 (diff)
Test cases should return 0.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@42321 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--SingleSource/Regression/C++/ofstream_ctor.cpp1
-rw-r--r--SingleSource/Regression/C++/short_circuit_dtor.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/SingleSource/Regression/C++/ofstream_ctor.cpp b/SingleSource/Regression/C++/ofstream_ctor.cpp
index edda9160..9a2e64f5 100644
--- a/SingleSource/Regression/C++/ofstream_ctor.cpp
+++ b/SingleSource/Regression/C++/ofstream_ctor.cpp
@@ -2,5 +2,6 @@
#include <fstream>
int main() {
std::ofstream X;
+ return 0;
}
diff --git a/SingleSource/Regression/C++/short_circuit_dtor.cpp b/SingleSource/Regression/C++/short_circuit_dtor.cpp
index f704f8c9..2e04fc38 100644
--- a/SingleSource/Regression/C++/short_circuit_dtor.cpp
+++ b/SingleSource/Regression/C++/short_circuit_dtor.cpp
@@ -11,4 +11,5 @@ void bar() {}
int main() {
if ((foo(1) || foo(2)))
bar();
+ return 0;
}