- Support noreturn on function-typed variables. - Extend isFunctionOrMethod to return true for K&R functions and provide hasFunctionProto to check if a decl has information about its arguments. This code needs some serious cleaning, but works. - Add/improve test cases for noreturn and unused. llvm-svn: 57778
11 lines
288 B
Objective-C
11 lines
288 B
Objective-C
// RUN: clang -verify -fsyntax-only %s
|
|
|
|
@class NSString;
|
|
|
|
@interface A
|
|
-t1 __attribute__((noreturn));
|
|
- (NSString *)stringByAppendingFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
|
|
-(void) m0 __attribute__((noreturn));
|
|
-(void) m1 __attribute__((unused));
|
|
@end
|