Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | |
| 3 | // ------------------------------- |
| 4 | // Build chained modules A, B, and C |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 5 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 6 | // RUN: -fmodule-name=a -emit-module %S/Inputs/explicit-build/module.modulemap -o %t/a.pcm \ |
| 7 | // RUN: 2>&1 | FileCheck --check-prefix=CHECK-NO-IMPLICIT-BUILD %s --allow-empty |
| 8 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 9 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 10 | // RUN: -fmodule-file=%t/a.pcm \ |
| 11 | // RUN: -fmodule-name=b -emit-module %S/Inputs/explicit-build/module.modulemap -o %t/b.pcm \ |
| 12 | // RUN: 2>&1 | FileCheck --check-prefix=CHECK-NO-IMPLICIT-BUILD %s --allow-empty |
| 13 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 14 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 15 | // RUN: -fmodule-file=%t/b.pcm \ |
| 16 | // RUN: -fmodule-name=c -emit-module %S/Inputs/explicit-build/module.modulemap -o %t/c.pcm \ |
| 17 | // RUN: 2>&1 | FileCheck --check-prefix=CHECK-NO-IMPLICIT-BUILD %s --allow-empty |
| 18 | // |
| 19 | // CHECK-NO-IMPLICIT-BUILD-NOT: building module |
| 20 | |
| 21 | // ------------------------------- |
| 22 | // Build B with an implicit build of A |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 23 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 24 | // RUN: -fmodule-name=b -emit-module %S/Inputs/explicit-build/module.modulemap -o %t/b-not-a.pcm \ |
| 25 | // RUN: 2>&1 | FileCheck --check-prefix=CHECK-B-NO-A %s |
| 26 | // |
| 27 | // CHECK-B-NO-A: While building module 'b': |
| 28 | // CHECK-B-NO-A: building module 'a' as |
| 29 | |
| 30 | // ------------------------------- |
| 31 | // Check that we can use the explicitly-built A, B, and C modules. |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 32 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 33 | // RUN: -I%S/Inputs/explicit-build \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 34 | // RUN: -fmodule-file=%t/a.pcm \ |
| 35 | // RUN: -verify %s -DHAVE_A |
| 36 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 37 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 38 | // RUN: -I%S/Inputs/explicit-build \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 39 | // RUN: -fmodule-map-file=%S/Inputs/explicit-build/module.modulemap \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 40 | // RUN: -fmodule-file=%t/a.pcm \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 41 | // RUN: -verify %s -DHAVE_A |
| 42 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 43 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 44 | // RUN: -I%S/Inputs/explicit-build \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 45 | // RUN: -fmodule-file=%t/b.pcm \ |
| 46 | // RUN: -verify %s -DHAVE_A -DHAVE_B |
| 47 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 48 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 49 | // RUN: -I%S/Inputs/explicit-build \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 50 | // RUN: -fmodule-file=%t/a.pcm \ |
| 51 | // RUN: -fmodule-file=%t/b.pcm \ |
| 52 | // RUN: -verify %s -DHAVE_A -DHAVE_B |
| 53 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 54 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 55 | // RUN: -I%S/Inputs/explicit-build \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 56 | // RUN: -fmodule-file=%t/a.pcm \ |
| 57 | // RUN: -fmodule-file=%t/b.pcm \ |
| 58 | // RUN: -fmodule-file=%t/c.pcm \ |
| 59 | // RUN: -verify %s -DHAVE_A -DHAVE_B -DHAVE_C |
| 60 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 61 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 62 | // RUN: -I%S/Inputs/explicit-build \ |
| 63 | // RUN: -fmodule-file=%t/a.pcm \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 64 | // RUN: -fmodule-file=%t/c.pcm \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 65 | // RUN: -verify %s -DHAVE_A -DHAVE_B -DHAVE_C |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 66 | |
Richard Smith | 7f330cd | 2015-03-18 01:42:29 +0000 | [diff] [blame] | 67 | // ------------------------------- |
| 68 | // Check that -fmodule-file= in a module build makes the file transitively |
| 69 | // available even if it's not used. |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 70 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fno-implicit-modules -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | 7f330cd | 2015-03-18 01:42:29 +0000 | [diff] [blame] | 71 | // RUN: -fmodule-file=%t/b.pcm \ |
| 72 | // RUN: -fmodule-name=d -emit-module %S/Inputs/explicit-build/module.modulemap -o %t/d.pcm \ |
| 73 | // RUN: 2>&1 | FileCheck --check-prefix=CHECK-NO-IMPLICIT-BUILD %s --allow-empty |
| 74 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 75 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fno-implicit-modules -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | 7f330cd | 2015-03-18 01:42:29 +0000 | [diff] [blame] | 76 | // RUN: -I%S/Inputs/explicit-build \ |
| 77 | // RUN: -fmodule-file=%t/d.pcm \ |
| 78 | // RUN: -verify %s -DHAVE_A -DHAVE_B |
| 79 | |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 80 | #if HAVE_A |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 81 | #include "a.h" |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 82 | static_assert(a == 1, ""); |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 83 | #else |
| 84 | const int use_a = a; // expected-error {{undeclared identifier}} |
| 85 | #endif |
| 86 | |
| 87 | #if HAVE_B |
| 88 | #include "b.h" |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 89 | static_assert(b == 2, ""); |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 90 | #else |
| 91 | const int use_b = b; // expected-error {{undeclared identifier}} |
| 92 | #endif |
| 93 | |
| 94 | #if HAVE_C |
| 95 | #include "c.h" |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 96 | static_assert(c == 3, ""); |
| 97 | #else |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 98 | const int use_c = c; // expected-error {{undeclared identifier}} |
| 99 | #endif |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 100 | |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 101 | #if HAVE_A && HAVE_B && HAVE_C |
| 102 | // expected-no-diagnostics |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 103 | #endif |
| 104 | |
| 105 | // ------------------------------- |
| 106 | // Check that we can use a mixture of implicit and explicit modules. |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 107 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 108 | // RUN: -I%S/Inputs/explicit-build \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 109 | // RUN: -fmodule-file=%t/b-not-a.pcm \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 110 | // RUN: -verify %s -DHAVE_A -DHAVE_B |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 111 | |
| 112 | // ------------------------------- |
| 113 | // Try to use two different flavors of the 'a' module. |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 114 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 115 | // RUN: -fmodule-file=%t/a.pcm \ |
| 116 | // RUN: -fmodule-file=%t/b-not-a.pcm \ |
| 117 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-MULTIPLE-AS %s |
| 118 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 119 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 120 | // RUN: -fmodule-file=%t/a.pcm \ |
| 121 | // RUN: -fmodule-file=%t/b-not-a.pcm \ |
| 122 | // RUN: -fmodule-map-file=%S/Inputs/explicit-build/module.modulemap \ |
| 123 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-MULTIPLE-AS %s |
| 124 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 125 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 126 | // RUN: -fmodule-name=a -emit-module %S/Inputs/explicit-build/module.modulemap -o %t/a-alt.pcm \ |
| 127 | // RUN: 2>&1 | FileCheck --check-prefix=CHECK-NO-IMPLICIT-BUILD %s --allow-empty |
| 128 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 129 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 130 | // RUN: -fmodule-file=%t/a.pcm \ |
| 131 | // RUN: -fmodule-file=%t/a-alt.pcm \ |
| 132 | // RUN: -fmodule-map-file=%S/Inputs/explicit-build/module.modulemap \ |
| 133 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-MULTIPLE-AS %s |
| 134 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 135 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 136 | // RUN: -fmodule-file=%t/a-alt.pcm \ |
| 137 | // RUN: -fmodule-file=%t/a.pcm \ |
| 138 | // RUN: -fmodule-map-file=%S/Inputs/explicit-build/module.modulemap \ |
| 139 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-MULTIPLE-AS %s |
| 140 | // |
NAKAMURA Takumi | 4b81164 | 2015-08-09 22:55:50 +0000 | [diff] [blame] | 141 | // CHECK-MULTIPLE-AS: error: module 'a' is defined in both '{{.*[/\\]}}a{{.*}}.pcm' and '{{.*[/\\]}}a{{.*}}.pcm' |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 142 | |
| 143 | // ------------------------------- |
| 144 | // Try to import a PCH with -fmodule-file= |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 145 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | 7e82e01 | 2016-02-19 22:25:36 +0000 | [diff] [blame] | 146 | // RUN: -fmodule-name=a -emit-pch %S/Inputs/explicit-build/a.h -o %t/a.pch -DBUILDING_A_PCH \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 147 | // RUN: 2>&1 | FileCheck --check-prefix=CHECK-NO-IMPLICIT-BUILD %s --allow-empty |
| 148 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 149 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | e842a47 | 2014-10-22 02:05:46 +0000 | [diff] [blame] | 150 | // RUN: -fmodule-file=%t/a.pch \ |
| 151 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-A-AS-PCH %s |
| 152 | // |
| 153 | // CHECK-A-AS-PCH: fatal error: AST file '{{.*}}a.pch' was not built as a module |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 154 | |
| 155 | // ------------------------------- |
| 156 | // Try to import a non-AST file with -fmodule-file= |
| 157 | // |
| 158 | // RUN: touch %t/not.pcm |
| 159 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 160 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 161 | // RUN: -fmodule-file=%t/not.pcm \ |
| 162 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-BAD-FILE %s |
| 163 | // |
Richard Smith | 37bd29a | 2015-02-28 03:09:52 +0000 | [diff] [blame] | 164 | // CHECK-BAD-FILE: fatal error: file '{{.*}}not.pcm' is not a valid precompiled module file |
| 165 | |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 166 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 167 | // RUN: -fmodule-file=%t/nonexistent.pcm \ |
Richard Smith | 37bd29a | 2015-02-28 03:09:52 +0000 | [diff] [blame] | 168 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-NO-FILE %s |
Richard Smith | d4b230b | 2014-10-27 23:01:16 +0000 | [diff] [blame] | 169 | // |
Richard Smith | 37bd29a | 2015-02-28 03:09:52 +0000 | [diff] [blame] | 170 | // CHECK-NO-FILE: fatal error: module file '{{.*}}nonexistent.pcm' not found |
| 171 | |
| 172 | // RUN: mv %t/a.pcm %t/a-tmp.pcm |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 173 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | 37bd29a | 2015-02-28 03:09:52 +0000 | [diff] [blame] | 174 | // RUN: -I%S/Inputs/explicit-build \ |
| 175 | // RUN: -fmodule-file=%t/c.pcm \ |
| 176 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-NO-FILE-INDIRECT %s |
| 177 | // RUN: mv %t/a-tmp.pcm %t/a.pcm |
| 178 | // |
| 179 | // CHECK-NO-FILE-INDIRECT: error: module file '{{.*}}a.pcm' not found |
| 180 | // CHECK-NO-FILE-INDIRECT-NEXT: note: imported by module 'b' in '{{.*}}b.pcm' |
| 181 | // CHECK-NO-FILE-INDIRECT-NEXT: note: imported by module 'c' in '{{.*}}c.pcm' |
Richard Smith | 0f99d6a | 2015-08-09 08:48:41 +0000 | [diff] [blame] | 182 | // CHECK-NO-FILE-INDIRECT-NOT: note: |
Richard Smith | 5b39075 | 2014-11-21 05:37:20 +0000 | [diff] [blame] | 183 | |
| 184 | // ------------------------------- |
| 185 | // Check that we don't get upset if B's timestamp is newer than C's. |
| 186 | // RUN: touch %t/b.pcm |
| 187 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 188 | // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | 5b39075 | 2014-11-21 05:37:20 +0000 | [diff] [blame] | 189 | // RUN: -I%S/Inputs/explicit-build \ |
| 190 | // RUN: -fmodule-file=%t/c.pcm \ |
| 191 | // RUN: -verify %s -DHAVE_A -DHAVE_B -DHAVE_C |
| 192 | // |
| 193 | // ... but that we do get upset if our B is different from the B that C expects. |
| 194 | // |
| 195 | // RUN: cp %t/b-not-a.pcm %t/b.pcm |
| 196 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 197 | // RUN: not %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-build -fno-modules-error-recovery \ |
Richard Smith | 5b39075 | 2014-11-21 05:37:20 +0000 | [diff] [blame] | 198 | // RUN: -I%S/Inputs/explicit-build \ |
| 199 | // RUN: -fmodule-file=%t/c.pcm \ |
| 200 | // RUN: %s -DHAVE_A -DHAVE_B -DHAVE_C 2>&1 | FileCheck --check-prefix=CHECK-MISMATCHED-B %s |
| 201 | // |
Richard Smith | 0f99d6a | 2015-08-09 08:48:41 +0000 | [diff] [blame] | 202 | // CHECK-MISMATCHED-B: fatal error: module file '{{.*}}b.pcm' is out of date and needs to be rebuilt |
| 203 | // CHECK-MISMATCHED-B-NEXT: note: imported by module 'c' |
| 204 | // CHECK-MISMATCHED-B-NOT: note: |