From ec87a50a3e9175441b5e4b38cc477881c078edf8 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 13 Feb 2015 23:50:20 +0000 Subject: [modules] If we have a choice between including a file textually and importing a prebuilt form from a module, prefer the modular form, all else being equal. llvm-svn: 229188 --- clang/test/Modules/header-in-multiple-maps.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 clang/test/Modules/header-in-multiple-maps.cpp (limited to 'clang/test/Modules/header-in-multiple-maps.cpp') diff --git a/clang/test/Modules/header-in-multiple-maps.cpp b/clang/test/Modules/header-in-multiple-maps.cpp new file mode 100644 index 00000000000..a9c0c80eca8 --- /dev/null +++ b/clang/test/Modules/header-in-multiple-maps.cpp @@ -0,0 +1,9 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/header-in-multiple-maps -fmodule-map-file=%S/Inputs/header-in-multiple-maps/map1 -verify %s +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/header-in-multiple-maps -fmodule-map-file=%S/Inputs/header-in-multiple-maps/map2 -verify %s +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/header-in-multiple-maps -fmodule-map-file=%S/Inputs/header-in-multiple-maps/map3 -verify %s +// expected-no-diagnostics + +#include "a.h" +#include "a.h" +A *p; -- cgit v1.2.3