You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
857 B
14 lines
857 B
// RUN: rm -rf %t
|
|
// 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 -Werror
|
|
// 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 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
|