Skip to content

Commit 3e7199b

Browse files
committed
Add test case for <rdar://problem/7880658>.
llvm-svn: 103701
1 parent 2b3cbac commit 3e7199b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

clang/test/SemaCXX/warn-missing-noreturn.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,17 @@ namespace test1 {
3636
while (condition()) {}
3737
}
3838
}
39+
40+
41+
// <rdar://problem/7880658> - This test case previously had a false "missing return"
42+
// warning.
43+
struct R7880658 {
44+
R7880658 &operator++();
45+
bool operator==(const R7880658 &) const;
46+
bool operator!=(const R7880658 &) const;
47+
};
48+
49+
void f_R7880658(R7880658 f, R7880658 l) { // no-warning
50+
for (; f != l; ++f) {
51+
}
52+
}

0 commit comments

Comments
 (0)