3 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -E -o %t/diamond.mi -frewrite-imports
4 // RUN: FileCheck %s --input-file %t/diamond.mi
5 // RUN: %clang_cc1 -fmodules %t/diamond.mi -I. -verify
7 // CHECK: {{^}}#pragma clang module build diamond_top
8 // CHECK: {{^}}module diamond_top {
9 // CHECK: {{^}}#pragma clang module contents
11 // FIXME: @import does not work under -frewrite-includes / -frewrite-imports
12 // because we disable it when macro expansion is disabled.
13 #include "diamond_bottom.h"
15 // expected-no-diagnostics
16 void test_diamond(int i, float f, double d, char c) {
23 struct left_and_right lr;