diff options
Diffstat (limited to 'test/Analysis/NoReturn.m')
-rw-r--r-- | test/Analysis/NoReturn.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/NoReturn.m b/test/Analysis/NoReturn.m index ea2efd061711..1d948fa66f6d 100644 --- a/test/Analysis/NoReturn.m +++ b/test/Analysis/NoReturn.m @@ -76,3 +76,15 @@ int f3(int* x) { return *x; // no-warning } + +@interface CustomException : NSException +@end + +int testCustomException(int *x) { + if (x != 0) return 0; + + [CustomException raise:@"Blah" format:@"abc"]; + + return *x; // no-warning +} + |