summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/warn-missing-noreturn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/warn-missing-noreturn.cpp')
-rw-r--r--test/SemaCXX/warn-missing-noreturn.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-missing-noreturn.cpp b/test/SemaCXX/warn-missing-noreturn.cpp
index 8016c3d..f2f9b2e 100644
--- a/test/SemaCXX/warn-missing-noreturn.cpp
+++ b/test/SemaCXX/warn-missing-noreturn.cpp
@@ -36,3 +36,17 @@ namespace test1 {
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) {
+ }
+}
OpenPOWER on IntegriCloud