forked from OSchip/llvm-project
				
			objective-c test case for __attribute__((unused)) on method arguments.
llvm-svn: 93887
This commit is contained in:
		
							parent
							
								
									9c31b0c695
								
							
						
					
					
						commit
						6d77a96111
					
				| 
						 | 
					@ -0,0 +1,15 @@
 | 
				
			||||||
 | 
					// RUN: %clang_cc1  -fsyntax-only -Wunused-parameter -verify %s
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@interface INTF
 | 
				
			||||||
 | 
					- (void) correct_use_of_unused: (void *) notice : (id)another_arg;
 | 
				
			||||||
 | 
					- (void) will_warn_unused_arg: (void *) notice : (id)warn_unused;
 | 
				
			||||||
 | 
					- (void) unused_attr_on_decl_ignored: (void *)  __attribute__((unused)) will_warn;
 | 
				
			||||||
 | 
					@end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@implementation INTF
 | 
				
			||||||
 | 
					- (void) correct_use_of_unused: (void *)  __attribute__((unused)) notice : (id) __attribute__((unused)) newarg{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					- (void) will_warn_unused_arg: (void *) __attribute__((unused))  notice : (id)warn_unused {}  // expected-warning {{unused parameter 'warn_unused'}}
 | 
				
			||||||
 | 
					- (void) unused_attr_on_decl_ignored: (void *)  will_warn{}  // expected-warning {{unused parameter 'will_warn'}}
 | 
				
			||||||
 | 
					@end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue