summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/diagnostics.modulemap
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-07-14 02:06:01 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-07-14 02:06:01 +0000
commitae6df27ef40e128faa1ce33ab25076a53be584a4 (patch)
tree8577b4c63dbaca0f431038a2ab0645ea5f72886a /clang/test/Modules/diagnostics.modulemap
parent3bdfc1cd0ccd2e9421e67ebcded5d467eee2bfbf (diff)
downloadbcm5719-llvm-ae6df27ef40e128faa1ce33ab25076a53be584a4.tar.gz
bcm5719-llvm-ae6df27ef40e128faa1ce33ab25076a53be584a4.zip
[modules] When diagnosing errors in module map files found by 'extern module' declarations, show how we got to that module map file.
llvm-svn: 242105
Diffstat (limited to 'clang/test/Modules/diagnostics.modulemap')
-rw-r--r--clang/test/Modules/diagnostics.modulemap3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Modules/diagnostics.modulemap b/clang/test/Modules/diagnostics.modulemap
index aef094d3bf6..3b5b6a5c039 100644
--- a/clang/test/Modules/diagnostics.modulemap
+++ b/clang/test/Modules/diagnostics.modulemap
@@ -1,5 +1,8 @@
// RUN: not %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodule-map-file=%S/Inputs/diagnostics-aux.modulemap -fmodule-map-file=%s -fsyntax-only -x c++ /dev/null 2>&1 | FileCheck %s
+// CHECK: In file included from {{.*}}diagnostics-aux.modulemap:3:
+// CHECK: diagnostics-aux-2.modulemap:2:3: error: expected
+
// PR22299: Ensure we can produce diagnostics for duplicate modules from -fmodule-map-file=.
//
// CHECK: diagnostics.modulemap:[[@LINE+2]]:8: error: redefinition of module 'foo'
OpenPOWER on IntegriCloud