forked from OSchip/llvm-project
				
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			701 B
		
	
	
	
		
			Objective-C
		
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			701 B
		
	
	
	
		
			Objective-C
		
	
	
	
| // RUN: rm -rf %t
 | |
| // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules \
 | |
| // RUN:     -fimplicit-module-maps -F %S/Inputs/GNUAsm %s \
 | |
| // RUN:     -I %S/Inputs/GNUAsm \
 | |
| // RUN:     -fno-gnu-inline-asm -DNO_ASM_INLINE -verify
 | |
| // RUN: rm -rf %t
 | |
| // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules \
 | |
| // RUN:     -fimplicit-module-maps -F %S/Inputs/GNUAsm %s \
 | |
| // RUN:     -DASM_INLINE -verify
 | |
| 
 | |
| #ifdef NO_ASM_INLINE
 | |
| // expected-error@NeedsGNUInlineAsm.framework/module.map:4 {{module 'NeedsGNUInlineAsm.Asm' requires feature 'gnuinlineasm'}}
 | |
| @import NeedsGNUInlineAsm.Asm; // expected-note {{module imported here}}
 | |
| #endif
 | |
| 
 | |
| #ifdef ASM_INLINE
 | |
| @import NeedsGNUInlineAsm.Asm; // expected-no-diagnostics
 | |
| #endif
 |