forked from OSchip/llvm-project
				
			
		
			
				
	
	
		
			6 lines
		
	
	
		
			347 B
		
	
	
	
		
			C
		
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			347 B
		
	
	
	
		
			C
		
	
	
	
| // RUN: %clang_cc1 -fsyntax-only -verify %s
 | |
| 
 | |
| void __attribute__((no_stack_protector)) foo() {}
 | |
| int __attribute__((no_stack_protector)) var; // expected-warning {{'no_stack_protector' attribute only applies to functions}}
 | |
| void  __attribute__((no_stack_protector(2))) bar() {} // expected-error {{'no_stack_protector' attribute takes no arguments}}
 |