Skip to content

Commit 05c6f75

Browse files
committed
Update return.mm test case
1 parent 75fb282 commit 05c6f75

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

clang/test/CodeGenObjCXX/return.mm

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,7 @@ - (int)method {
1212

1313
@end
1414

15-
enum Enum {
16-
a
17-
};
18-
19-
int (^block)(Enum) = ^int(Enum e) {
20-
switch (e) {
21-
case a:
22-
return 1;
23-
}
24-
};
25-
26-
// Ensure that both methods and blocks don't use the -fstrict-return undefined
27-
// behaviour optimization.
15+
// Ensure that methods don't use the -fstrict-return undefined behaviour optimization.
2816

2917
// CHECK-NOT: call void @llvm.trap
3018
// CHECK-NOT: unreachable

0 commit comments

Comments
 (0)