Fznamznon created this revision. Fznamznon added reviewers: ChuanqiXu, Bigcheese. Herald added a project: All. Fznamznon requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
The test can fail if wokring directory where the test was launched has a `error` substring in its path. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D143734 Files: clang/test/Modules/libstdcxx-ambiguous-internal.cpp Index: clang/test/Modules/libstdcxx-ambiguous-internal.cpp =================================================================== --- clang/test/Modules/libstdcxx-ambiguous-internal.cpp +++ clang/test/Modules/libstdcxx-ambiguous-internal.cpp @@ -2,12 +2,12 @@ // 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-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-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 +// CHECK-NOT: error:
Index: clang/test/Modules/libstdcxx-ambiguous-internal.cpp =================================================================== --- clang/test/Modules/libstdcxx-ambiguous-internal.cpp +++ clang/test/Modules/libstdcxx-ambiguous-internal.cpp @@ -2,12 +2,12 @@ // 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-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-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 +// CHECK-NOT: error:
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits