Skip to content

Commit 75fb282

Browse files
committed
Update objective c warn-called-once
1 parent e1ce92c commit 75fb282

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

clang/test/SemaObjC/warn-called-once.m

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -444,27 +444,6 @@ void never_called_switch_none(int cond, void (^callback)(void) CALLED_ONCE) {
444444
}
445445
}
446446

447-
enum YesNoOrMaybe {
448-
YES,
449-
NO,
450-
MAYBE
451-
};
452-
453-
void exhaustive_switch(enum YesNoOrMaybe cond, void (^callback)(void) CALLED_ONCE) {
454-
switch (cond) {
455-
case YES:
456-
callback();
457-
break;
458-
case NO:
459-
callback();
460-
break;
461-
case MAYBE:
462-
callback();
463-
break;
464-
}
465-
// no-warning
466-
}
467-
468447
void called_twice_exceptions(void (^callback)(void) CALLED_ONCE) {
469448
// TODO: Obj-C exceptions are not supported in CFG,
470449
// we should report warnings in these as well.

0 commit comments

Comments
 (0)