llvm-project/clang/test/Modules/Rmodule-build.m
Ben Langmuir c95e56488d Switch Wmodule-build to a remark
On reflection, this is better despite the missing command-line handling
bits for remarks.  Making this a remark makes it much clearer that
this is purely informational and avoids the negative connotations of a
'warning'.

llvm-svn: 208367
2014-05-08 22:36:02 +00:00

23 lines
754 B
Matlab

// REQUIRES: shell
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo '// A' > %t/A.h
// RUN: echo '// B' > %t/B.h
// RUN: echo 'module A { header "A.h" }' > %t/module.modulemap
// RUN: echo 'module B { header "B.h" }' >> %t/module.modulemap
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fsyntax-only %s -verify \
// RUN: -I %t -Wmodule-build
@import A; // expected-remark{{building module 'A' as}}
@import B; // expected-remark{{building module 'B' as}}
@import A; // no diagnostic
@import B; // no diagnostic
// RUN: echo ' ' >> %t/B.h
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fsyntax-only %s -I %t \
// RUN: -Wmodule-build 2>&1 | FileCheck %s
// CHECK-NOT: building module 'A'
// CHECK: building module 'B'