r192926 - Consumed analysis: update to previous test case.

DeLesley Hutchins delesley at google.com
Thu Oct 17 15:21:03 PDT 2013


Author: delesley
Date: Thu Oct 17 17:21:03 2013
New Revision: 192926

URL: http://llvm.org/viewvc/llvm-project?rev=192926&view=rev
Log:
Consumed analysis: update to previous test case.

Modified:
    cfe/trunk/test/SemaCXX/warn-consumed-analysis.cpp

Modified: cfe/trunk/test/SemaCXX/warn-consumed-analysis.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-consumed-analysis.cpp?rev=192926&r1=192925&r2=192926&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-consumed-analysis.cpp (original)
+++ cfe/trunk/test/SemaCXX/warn-consumed-analysis.cpp Thu Oct 17 17:21:03 2013
@@ -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
 





More information about the cfe-commits mailing list