brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · e9e2ca9 Raw
38 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir %t3// RUN: echo '// A' > %t/A.h4// RUN: echo '#include "C.h"' > %t/B.h5// RUN: echo '// C' > %t/C.h6// RUN: echo 'module A { header "A.h" }' > %t/module.modulemap7// RUN: echo 'module B { header "B.h" }' >> %t/module.modulemap8// RUN: echo 'module C { header "C.h" }' >> %t/module.modulemap9 10// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fsyntax-only %s -verify \11// RUN:            -I %t -Rmodule-build12 13@import A; // expected-remark{{building module 'A' as}} expected-remark {{finished building module 'A'}}14@import B; // expected-remark{{building module 'B' as}} expected-remark {{finished building module 'B'}}15@import A; // no diagnostic16@import B; // no diagnostic17 18// RUN: echo ' ' >> %t/C.h19// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fsyntax-only %s -I %t \20// RUN:            -Rmodule-build 2>&1 | FileCheck %s21 22// RUN: echo ' ' >> %t/B.h23// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fsyntax-only %s -I %t \24// RUN:            2>&1 | FileCheck -allow-empty -check-prefix=NO-REMARKS %s25 26// RUN: echo ' ' >> %t/B.h27// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fsyntax-only %s -I %t \28// RUN:            -Rmodule-build -Rno-everything 2>&1 | \29// RUN:    FileCheck -allow-empty -check-prefix=NO-REMARKS %s30 31// CHECK-NOT: building module 'A'32// CHECK: building module 'B'33// CHECK: building module 'C'34// CHECK: finished building module 'C'35// CHECK: finished building module 'B'36// NO-REMARKS-NOT: building module 'A'37// NO-REMARKS-NOT: building module 'B'38