brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 6c9582d Raw
24 lines · plain
1// Confirm -fimplicit-modules-use-lock and -fno-implicit-modules-use-lock control2// whether building a module triggers -Rmodule-lock, indirectly checking whether3// a lock manager is being used.4//5// RUN: rm -rf %t.cache6// RUN: %clang_cc1 -fmodules -fimplicit-module-maps \7// RUN:   -fimplicit-modules-use-lock -Rmodule-lock -Rmodule-build \8// RUN:   -fmodules-cache-path=%t.cache -I%S/Inputs/system-out-of-date \9// RUN:   -fsyntax-only %s -Wnon-modular-include-in-framework-module \10// RUN:   -Werror=non-modular-include-in-framework-module \11// RUN:   -verify=locks,build12//13// RUN: rm -rf %t.cache14// RUN: %clang_cc1 -fmodules -fimplicit-module-maps \15// RUN:   -fno-implicit-modules-use-lock -Rmodule-lock -Rmodule-build \16// RUN:   -fmodules-cache-path=%t.cache -I%S/Inputs/system-out-of-date \17// RUN:   -fsyntax-only %s -Wnon-modular-include-in-framework-module \18// RUN:   -Werror=non-modular-include-in-framework-module \19// RUN:   -verify=build20 21@import X; // locks-remark-re {{locking '{{.*}}.pcm' to build module 'X'}} \22           // build-remark {{building module 'X'}}                         \23           // build-remark {{finished building module 'X'}}24