1// RUN: rm -rf %t 2// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules \ 3// RUN: -fimplicit-module-maps -F %S/Inputs/GNUAsm %s \ 4// RUN: -I %S/Inputs/GNUAsm \ 5// RUN: -fno-gnu-inline-asm -DNO_ASM_INLINE -verify 6// RUN: rm -rf %t 7// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules \ 8// RUN: -fimplicit-module-maps -F %S/Inputs/GNUAsm %s \ 9// RUN: -DASM_INLINE -verify 10 11#ifdef NO_ASM_INLINE 12// expected-error@NeedsGNUInlineAsm.framework/module.map:4 {{module 'NeedsGNUInlineAsm.Asm' requires feature 'gnuinlineasm'}} 13@import NeedsGNUInlineAsm.Asm; // expected-note {{module imported here}} 14#endif 15 16#ifdef ASM_INLINE 17@import NeedsGNUInlineAsm.Asm; // expected-no-diagnostics 18#endif 19