44 lines · plain
1// RUN: rm -rf %t2// RUN: split-file %s %t3// RUN: %clang_cc1 -std=c17 -fmodules-cache-path=%t/no-lsv -fmodules -fimplicit-module-maps -I%t %t/multiple-imports.m -verify4// RUN: %clang_cc1 -std=c17 -fmodules-cache-path=%t/lsv -fmodules -fimplicit-module-maps -fmodules-local-submodule-visibility -I%t %t/multiple-imports.m -verify5 6//--- multiple-imports.m7// expected-no-diagnostics8#import <one.h>9#import <assert.h>10void test(void) {11 assert(0);12}13 14//--- module.modulemap15module Submodules [system] {16 module one {17 header "one.h"18 export *19 }20 module two {21 header "two.h"22 export *23 }24}25 26module libc [system] {27 textual header "assert.h"28}29 30//--- one.h31#ifndef one_h32#define one_h33#endif34 35//--- two.h36#ifndef two_h37#define two_h38#include <assert.h>39#endif40 41//--- assert.h42#undef assert43#define assert(expression) ((void)0)44