diff options
| author | Phil Nash | 2012-08-13 07:46:10 +0100 |
|---|---|---|
| committer | Phil Nash | 2012-08-13 07:46:10 +0100 |
| commit | a695eb90064408d690f29e15a587b9db9323c43c (patch) | |
| tree | f073b16ca03d7c445efd8e6abe8e4f26f0da83c6 /projects/SelfTest/ExceptionTests.cpp | |
| parent | cdc64a138bd04ce39f0aee009532c9893be45080 (diff) | |
| download | catch3-a695eb90064408d690f29e15a587b9db9323c43c.tar.gz | |
Builds almost completely cleanly with -WEverything in LLVM
Diffstat (limited to 'projects/SelfTest/ExceptionTests.cpp')
| -rw-r--r-- | projects/SelfTest/ExceptionTests.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/projects/SelfTest/ExceptionTests.cpp b/projects/SelfTest/ExceptionTests.cpp index 8d8eb552..a6c2a60f 100644 --- a/projects/SelfTest/ExceptionTests.cpp +++ b/projects/SelfTest/ExceptionTests.cpp @@ -1,15 +1,13 @@ /* - * ExceptionTests.cpp - * Catch - Test - * * Created by Phil on 09/11/2010. * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - * */ +#pragma clang diagnostic ignored "-Wpadded" + #include "catch.hpp" #include <string> @@ -19,7 +17,7 @@ namespace { - ATTRIBUTE_NORETURN + CATCH_ATTRIBUTE_NORETURN int thisThrows(); int thisThrows() @@ -41,6 +39,7 @@ TEST_CASE( "./succeeding/exceptions/explicit", "When checked exceptions are thro REQUIRE_THROWS( thisThrows() ); } +CATCH_ATTRIBUTE_NORETURN TEST_CASE( "./failing/exceptions/explicit", "When checked exceptions are thrown they can be expected or unexpected" ) { CHECK_THROWS_AS( thisThrows(), std::string ); |