From: DeLesley Hutchins Date: Thu, 17 Oct 2013 22:21:03 +0000 (+0000) Subject: Consumed analysis: update to previous test case. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cd5d407202bd150fde8fdfcbf51139926a3aee7;p=clang Consumed analysis: update to previous test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192926 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/warn-consumed-analysis.cpp b/test/SemaCXX/warn-consumed-analysis.cpp index e7380b97fe..264d27af5e 100644 --- a/test/SemaCXX/warn-consumed-analysis.cpp +++ b/test/SemaCXX/warn-consumed-analysis.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -Wconsumed -std=c++11 %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wconsumed -fcxx-exceptions -std=c++11 %s // TODO: Switch to using macros for the expected warnings. @@ -577,5 +577,17 @@ static void foo2() { } } +class runtime_error +{ +public: + virtual ~runtime_error(); +}; + +void read(bool sf) { + while (sf) { + if(sf) throw runtime_error(); + } +} + } // end namespace ContinueICETest