1// RUN: rm -rf %t 2// RUN: mkdir -p %t/sys 3// RUN: echo '#include <B.h>' > %t/sys/A.h 4// RUN: echo '' > %t/sys/B.h 5// RUN: echo 'module A { header "A.h" }' > %t/sys/module.modulemap 6// RUN: echo 'module B { header "B.h" }' >> %t/sys/module.modulemap 7 8// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fsyntax-only %s \ 9// RUN: -isystem %t/sys -Rmodule-build 2>&1 | FileCheck %s 10 11@import A; 12 13// CHECK: building module 'A' as 14// CHECK: building module 'B' as 15// CHECK: finished building module 'B' 16// CHECK: finished building module 'A' 17