Richard Smith | ffb6508 | 2014-09-30 23:10:19 +0000 | [diff] [blame] | 1 | // RUN: %clang -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s |
Douglas Gregor | 226173a | 2012-01-18 15:19:58 +0000 | [diff] [blame] | 2 | // RUN: %clang -fcxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s |
Richard Smith | ffb6508 | 2014-09-30 23:10:19 +0000 | [diff] [blame] | 3 | // RUN: %clang -fmodules -fno-cxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s |
Douglas Gregor | 226173a | 2012-01-18 15:19:58 +0000 | [diff] [blame] | 4 | // CHECK-NO-MODULES-NOT: -fmodules |
| 5 | |
Richard Smith | ffb6508 | 2014-09-30 23:10:19 +0000 | [diff] [blame] | 6 | // RUN: %clang -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s |
| 7 | // RUN: %clang -fmodules -fno-cxx-modules -fcxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s |
Douglas Gregor | 226173a | 2012-01-18 15:19:58 +0000 | [diff] [blame] | 8 | // CHECK-HAS-MODULES: -fmodules |
Richard Smith | cf18b79 | 2015-06-16 00:20:23 +0000 | [diff] [blame] | 9 | |
| 10 | // RUN: %clang -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MAPS %s |
| 11 | // RUN: %clang -fimplicit-module-maps -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MAPS %s |
| 12 | // RUN: %clang -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MAPS %s |
| 13 | // RUN: %clang -fmodules -fno-implicit-module-maps -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MAPS %s |
| 14 | // CHECK-HAS-MAPS: -fimplicit-module-maps |
| 15 | // CHECK-NO-MAPS-NOT: -fimplicit-module-maps |