summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/libstdcxx-ambiguous-internal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/libstdcxx-ambiguous-internal.cpp')
-rw-r--r--clang/test/Modules/libstdcxx-ambiguous-internal.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/Modules/libstdcxx-ambiguous-internal.cpp b/clang/test/Modules/libstdcxx-ambiguous-internal.cpp
index 966b9c97681..784b442eab4 100644
--- a/clang/test/Modules/libstdcxx-ambiguous-internal.cpp
+++ b/clang/test/Modules/libstdcxx-ambiguous-internal.cpp
@@ -3,5 +3,11 @@
// RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -emit-module -fmodule-name=std -fmodules-cache-path=%t %S/Inputs/libstdcxx-ambiguous-internal/module.modulemap -fmodules-local-submodule-visibility -DAMBIGUOUS 2>&1| FileCheck %s
// CHECK-NOT: error
-// CHECK: warning: ambiguous use of internal linkage function 'f' defined in multiple modules
+// CHECK: warning: ambiguous use of internal linkage declaration 'f' defined in multiple modules
+// CHECK: note: declared here in module 'std.C'
+// CHECK: note: declared here in module 'std.B'
+// CHECK-NOT: error
+// CHECK: warning: ambiguous use of internal linkage declaration 'n' defined in multiple modules
+// CHECK: note: declared here in module 'std.C'
+// CHECK: note: declared here in module 'std.B'
// CHECK-NOT: error
OpenPOWER on IntegriCloud