19 lines · plain
1// RUN: rm -rf %t2// 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 -verify6// RUN: rm -rf %t7// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules \8// RUN: -fimplicit-module-maps -F %S/Inputs/GNUAsm %s \9// RUN: -DASM_INLINE -verify10 11#ifdef NO_ASM_INLINE12// expected-error@NeedsGNUInlineAsm.framework/Modules/module.modulemap:4 {{module 'NeedsGNUInlineAsm.Asm' requires feature 'gnuinlineasm'}}13@import NeedsGNUInlineAsm.Asm; // expected-note {{module imported here}}14#endif15 16#ifdef ASM_INLINE17@import NeedsGNUInlineAsm.Asm; // expected-no-diagnostics18#endif19