xref: /llvm-project/clang/test/Driver/modules.mm (revision cf18b79ccfb352b265db5ce7330e15cf38bb1e82)
1ffb65085SRichard Smith// RUN: %clang -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
2226173aeSDouglas Gregor// RUN: %clang -fcxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
3ffb65085SRichard Smith// RUN: %clang -fmodules -fno-cxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
4226173aeSDouglas Gregor// CHECK-NO-MODULES-NOT: -fmodules
5226173aeSDouglas Gregor
6ffb65085SRichard Smith// RUN: %clang -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s
7ffb65085SRichard Smith// RUN: %clang -fmodules -fno-cxx-modules -fcxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s
8226173aeSDouglas Gregor// CHECK-HAS-MODULES: -fmodules
9*cf18b79cSRichard Smith
10*cf18b79cSRichard Smith// RUN: %clang -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MAPS %s
11*cf18b79cSRichard Smith// RUN: %clang -fimplicit-module-maps -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MAPS %s
12*cf18b79cSRichard Smith// RUN: %clang -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MAPS %s
13*cf18b79cSRichard Smith// RUN: %clang -fmodules -fno-implicit-module-maps -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MAPS %s
14*cf18b79cSRichard Smith// CHECK-HAS-MAPS: -fimplicit-module-maps
15*cf18b79cSRichard Smith// CHECK-NO-MAPS-NOT: -fimplicit-module-maps
16