Richard Smith | 896c66e | 2015-10-21 07:13:52 +0000 | [diff] [blame^] | 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 function 'f' defined in multiple modules |
| 7 | // CHECK-NOT: error |