| 1 |
// RUN: %clang -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s |
| 2 |
// RUN: %clang -fcxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s |
| 3 |
// RUN: %clang -fmodules -fno-cxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s |
| 4 |
// CHECK-NO-MODULES-NOT: -fmodules |
| 5 |
|
| 6 |
// RUN: %clang -std=c++20 -fno-cxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-CPP-20-MODULES %s |
| 7 |
// CHECK-NO-CPP-20-MODULES: -fno-cxx-modules |
| 8 |
|
| 9 |
// RUN: %clang -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s |
| 10 |
// RUN: %clang -fmodules -fno-cxx-modules -fcxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s |
| 11 |
// CHECK-HAS-MODULES: -fmodules |
| 12 |
|
| 13 |
// RUN: %clang -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MAPS %s |
| 14 |
// RUN: %clang -fimplicit-module-maps -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MAPS %s |
| 15 |
// RUN: %clang -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MAPS %s |
| 16 |
// RUN: %clang -fmodules -fno-implicit-module-maps -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MAPS %s |
| 17 |
// CHECK-HAS-MAPS: -fimplicit-module-maps |
| 18 |
// CHECK-NO-MAPS-NOT: -fimplicit-module-maps |