[llvm-commits] [test-suite] r138828 - /test-suite/trunk/SingleSource/Regression/C++/EH/simple_rethrow.cpp
Bill Wendling
isanbard at gmail.com
Tue Aug 30 14:08:45 PDT 2011
Author: void
Date: Tue Aug 30 16:08:45 2011
New Revision: 138828
URL: http://llvm.org/viewvc/llvm-project?rev=138828&view=rev
Log:
Silence warnings about "control may reach end of non-void function"
Modified:
test-suite/trunk/SingleSource/Regression/C++/EH/simple_rethrow.cpp
Modified: test-suite/trunk/SingleSource/Regression/C++/EH/simple_rethrow.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C%2B%2B/EH/simple_rethrow.cpp?rev=138828&r1=138827&r2=138828&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C++/EH/simple_rethrow.cpp (original)
+++ test-suite/trunk/SingleSource/Regression/C++/EH/simple_rethrow.cpp Tue Aug 30 16:08:45 2011
@@ -1,11 +1,11 @@
#include <stdio.h>
-int throws() {
+void throws() {
printf("Throwing int\n");
throw 16;
};
-int callsthrows() {
+void callsthrows() {
try {
throws();
} catch (...) {
More information about the llvm-commits
mailing list