Index: test/Modules/Inputs/getSourceDescriptor-crash/h1.h =================================================================== --- test/Modules/Inputs/getSourceDescriptor-crash/h1.h +++ test/Modules/Inputs/getSourceDescriptor-crash/h1.h @@ -0,0 +1 @@ +#pragma once Index: test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap =================================================================== --- test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap +++ test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap @@ -0,0 +1,3 @@ +module foo { + header "h1.h" +} \ No newline at end of file Index: test/Modules/getSourceDescriptor-crash.cpp =================================================================== --- test/Modules/getSourceDescriptor-crash.cpp +++ test/Modules/getSourceDescriptor-crash.cpp @@ -0,0 +1,4 @@ +// RUN: %clang -I %S/Inputs/getSourceDescriptor-crash -c -g -fimplicit-module-maps %s + +#include "h1.h" +#include "h1.h"