[cfe-commits] r103701 - /cfe/trunk/test/SemaCXX/warn-missing-noreturn.cpp
Ted Kremenek
kremenek at apple.com
Wed May 12 23:58:45 PDT 2010
Author: kremenek
Date: Thu May 13 01:58:45 2010
New Revision: 103701
URL: http://llvm.org/viewvc/llvm-project?rev=103701&view=rev
Log:
Add test case for <rdar://problem/7880658>.
Modified:
cfe/trunk/test/SemaCXX/warn-missing-noreturn.cpp
Modified: cfe/trunk/test/SemaCXX/warn-missing-noreturn.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-missing-noreturn.cpp?rev=103701&r1=103700&r2=103701&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-missing-noreturn.cpp (original)
+++ cfe/trunk/test/SemaCXX/warn-missing-noreturn.cpp Thu May 13 01:58:45 2010
@@ -36,3 +36,17 @@
while (condition()) {}
}
}
+
+
+// <rdar://problem/7880658> - This test case previously had a false "missing return"
+// warning.
+struct R7880658 {
+ R7880658 &operator++();
+ bool operator==(const R7880658 &) const;
+ bool operator!=(const R7880658 &) const;
+};
+
+void f_R7880658(R7880658 f, R7880658 l) { // no-warning
+ for (; f != l; ++f) {
+ }
+}
More information about the cfe-commits
mailing list