Enable exceptions for this test case to speculatively fix the build bots.

Hopefully corrects: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/15666

llvm-svn: 310732
This commit is contained in:
Aaron Ballman 2017-08-11 16:46:45 +00:00
parent 7f37794ebd
commit 9253e89e47
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// RUN: %check_clang_tidy %s hicpp-exception-baseclass %t
// RUN: %check_clang_tidy %s hicpp-exception-baseclass %t -- -- -fcxx-exceptions
namespace std {
class exception {};
@ -20,7 +20,7 @@ void problematic() {
throw non_derived_exception(); // Some class is not allowed
// CHECK-MESSAGES: [[@LINE-1]]:5: warning: throwing an exception whose type is not derived from 'std::exception'
// CHECK-MESSAGES: 8:1: note: type defined here
} catch (non_derived_exception &e) {
} catch (non_derived_exception &e) {
}
throw non_derived_exception(); // Bad
// CHECK-MESSAGES: [[@LINE-1]]:3: warning: throwing an exception whose type is not derived from 'std::exception'