| // RUN: %clang_cc1 -fsyntax-only -verify -Wmissing-noreturn -fobjc-exceptions -Wno-objc-root-class %s |
| void test3(int a) { // expected-warning {{function 'test3' could be declared with attribute 'noreturn'}} |
| // <rdar://problem/4289832> - This code always returns, we should not |
| // issue a noreturn warning. |
| NSString *rdar_4289832() { // no-warning |
| @catch(NSException *exception) |
| void exit(int) __attribute__((noreturn)); |
| @implementation rdar10098695 |
| - (void)method { // expected-warning{{method 'method' could be declared with attribute 'noreturn'}} |