• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// REQUIRES: shell
2// RUN: rm -rf %t
3// RUN: mkdir %t
4// RUN: echo '// A' > %t/A.h
5// RUN: echo '// B' > %t/B.h
6// RUN: echo 'module A { header "A.h" }' > %t/module.modulemap
7// RUN: echo 'module B { header "B.h" }' >> %t/module.modulemap
8
9// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fsyntax-only %s -verify \
10// RUN:            -I %t -Wmodule-build
11
12@import A; // expected-remark{{building module 'A' as}}
13@import B; // expected-remark{{building module 'B' as}}
14@import A; // no diagnostic
15@import B; // no diagnostic
16
17// RUN: echo ' ' >> %t/B.h
18// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fsyntax-only %s -I %t \
19// RUN:            -Wmodule-build 2>&1 | FileCheck %s
20
21// CHECK-NOT: building module 'A'
22// CHECK: building module 'B'
23