29 lines · c
1// Test that pruning non-affecting input files happens before serializing2// diagnostic pragma mappings.3 4// RUN: rm -rf %t5// RUN: split-file %s %t6 7// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \8// RUN: -I %t/include_a -I %t/include_textual -fsyntax-only %t/tu.c9 10//--- tu.c11#include "a1.h"12 13//--- include_a/module.modulemap14module A {15 header "a1.h"16 header "a2.h"17}18//--- include_a/a1.h19#include "textual.h" // This will also load the non-affecting20 // include_textual/module.modulemap.21#include "a2.h"22//--- include_a/a2.h23#pragma clang diagnostic push24#pragma clang diagnostic ignored "-Wfloat-equal"25#pragma clang diagnostic pop26 27//--- include_textual/module.modulemap28//--- include_textual/textual.h29