| // RUN: %clang_cc1 -fmodules-ts -fmodule-name=ab -x c++-header %S/Inputs/no-module-map/a.h %S/Inputs/no-module-map/b.h -emit-header-module -o %t.pcm |
| // RUN: %clang_cc1 -fmodules-ts -fmodule-file=%t.pcm %s -I%S/Inputs/no-module-map -verify |
| // RUN: %clang_cc1 -fmodules-ts -fmodule-file=%t.pcm %s -I%S/Inputs/no-module-map -verify -DA |
| // RUN: %clang_cc1 -fmodules-ts -fmodule-file=%t.pcm %s -I%S/Inputs/no-module-map -verify -DB |
| // RUN: %clang_cc1 -fmodules-ts -fmodule-file=%t.pcm %s -I%S/Inputs/no-module-map -verify -DA -DB |
| // RUN: %clang_cc1 -E %t.pcm -o - | FileCheck %s |
| // RUN: %clang_cc1 -frewrite-imports -E %t.pcm -o - | FileCheck %s |
| // expected-no-diagnostics |
| #if defined(A) || defined(B) |
| #error A_H should be defined |
| #error A_H should not be defined |
| // expected-error@+3 {{must be imported from}} |
| // expected-note@* {{declaration}} |
| #error B_H should be defined |
| #error B_H should not be defined |
| // expected-error@+3 {{must be imported from}} |
| // expected-note@* {{declaration}} |