| 1 |
// RUN: rm -rf %t.dir |
| 2 |
// RUN: mkdir %t.dir |
| 3 |
|
| 4 |
// -fsystem-module requires -emit-module |
| 5 |
// RUN: not %clang_cc1 -fsyntax-only -fsystem-module %s 2>&1 | grep "-emit-module" |
| 6 |
|
| 7 |
// RUN: not %clang_cc1 -fmodules -I %S/Inputs \ |
| 8 |
// RUN: -emit-module -fmodule-name=warning -pedantic -Werror \ |
| 9 |
// RUN: %S/Inputs/module.modulemap -o %t.dir/warning.pcm |
| 10 |
|
| 11 |
// RUN: %clang_cc1 -fmodules -I %S/Inputs \ |
| 12 |
// RUN: -emit-module -fmodule-name=warning -pedantic -Werror \ |
| 13 |
// RUN: %S/Inputs/module.modulemap -o %t.dir/warning-system.pcm -fsystem-module |
| 14 |
|
| 15 |
// RUN: not %clang_cc1 -fmodules -I %S/Inputs \ |
| 16 |
// RUN: -emit-module -fmodule-name=warning -pedantic -Werror \ |
| 17 |
// RUN: %S/Inputs/module.modulemap -o %t.dir/warning-system.pcm -fsystem-module \ |
| 18 |
// RUN: -Wsystem-headers |