]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Modules/requires-gnuinlineasm.m
Vendor import of clang trunk r290819:
[FreeBSD/FreeBSD.git] / test / Modules / requires-gnuinlineasm.m
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:     -fno-gnu-inline-asm -DNO_ASM_INLINE -verify
5 // RUN: rm -rf %t
6 // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules \
7 // RUN:     -fimplicit-module-maps -F %S/Inputs/GNUAsm %s \
8 // RUN:     -DASM_INLINE -verify
9
10 #ifdef NO_ASM_INLINE
11 @import NeedsGNUInlineAsm.Asm; // expected-error{{module 'NeedsGNUInlineAsm.Asm' requires feature 'gnuinlineasm'}}
12 #endif
13
14 #ifdef ASM_INLINE
15 @import NeedsGNUInlineAsm.Asm; // expected-no-diagnostics
16 #endif