Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Modules/libstdcxx-ambiguous-internal.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // RUN: rm -rf %t | |
2 // 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 | |
3 // 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 | |
4 | |
5 // CHECK-NOT: error | |
6 // CHECK: warning: ambiguous use of internal linkage declaration 'f' defined in multiple modules | |
7 // CHECK: note: declared here in module 'std.C' | |
8 // CHECK: note: declared here in module 'std.B' | |
9 // CHECK-NOT: error | |
10 // CHECK: warning: ambiguous use of internal linkage declaration 'n' defined in multiple modules | |
11 // CHECK: note: declared here in module 'std.C' | |
12 // CHECK: note: declared here in module 'std.B' | |
13 // CHECK-NOT: error |