Files
clang-p2996/clang/test/Modules/fsystem-module.m
Michael Spencer 27a3ecee45 [clang][Modules] Add -fsystem-module flag
The -fsystem-module flag is used when explicitly building a module. It
forces the module to be treated as a system module. This is used when
converting an implicit build to an explicit build to match the
systemness the implicit build would have had for a given module.

Differential Revision: https://reviews.llvm.org/D75395
2020-03-03 14:14:24 -08:00

19 lines
740 B
Matlab

// RUN: rm -rf %t.dir
// RUN: mkdir %t.dir
// -fsystem-module requires -emit-module
// RUN: not %clang_cc1 -fsyntax-only -fsystem-module %s 2>&1 | grep "-emit-module"
// RUN: not %clang_cc1 -fmodules -I %S/Inputs \
// RUN: -emit-module -fmodule-name=warning -pedantic -Werror \
// RUN: %S/Inputs/module.map -o %t.dir/warning.pcm
// RUN: %clang_cc1 -fmodules -I %S/Inputs \
// RUN: -emit-module -fmodule-name=warning -pedantic -Werror \
// RUN: %S/Inputs/module.map -o %t.dir/warning-system.pcm -fsystem-module
// RUN: not %clang_cc1 -fmodules -I %S/Inputs \
// RUN: -emit-module -fmodule-name=warning -pedantic -Werror \
// RUN: %S/Inputs/module.map -o %t.dir/warning-system.pcm -fsystem-module \
// RUN: -Wsystem-headers