blob: d1536c73a1f3b1ce581b3f1165ad8b7520050dc4 [file] [log] [blame]
Richard Smithffb65082014-09-30 23:10:19 +00001// RUN: %clang -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
Douglas Gregor226173a2012-01-18 15:19:58 +00002// RUN: %clang -fcxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
Richard Smithffb65082014-09-30 23:10:19 +00003// RUN: %clang -fmodules -fno-cxx-modules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MODULES %s
Douglas Gregor226173a2012-01-18 15:19:58 +00004// CHECK-NO-MODULES-NOT: -fmodules
5
Richard Smithffb65082014-09-30 23:10:19 +00006// 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 Gregor226173a2012-01-18 15:19:58 +00008// CHECK-HAS-MODULES: -fmodules
Richard Smithcf18b792015-06-16 00:20:23 +00009
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