2 // RUN: split-file %s %t
4 // This test checks that headers that are part of a module named by
5 // -fmodule-name= don't get included again if previously included from a PCH.
7 //--- include/module.modulemap
8 module Mod
{ header
"Mod.h" }
14 #import "Mod.h" // expected-no-diagnostics
16 // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -fimplicit-module-maps -fmodule-name=Mod -I %t/include \
17 // RUN: -emit-pch -x c-header %t/pch.h -o %t/pch.pch
18 // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -fimplicit-module-maps -fmodule-name=Mod -I %t/include \
19 // RUN: -fsyntax-only %t/tu.c -include-pch %t/pch.pch -verify