llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clangd Author: Matheus Izvekov (mizvekov) <details> <summary>Changes</summary> Add test for https://github.com/llvm/llvm-project/issues/75115 --- Full diff: https://github.com/llvm/llvm-project/pull/75116.diff 1 Files Affected: - (added) clang-tools-extra/clangd/test/GH75115.test (+12) ``````````diff diff --git a/clang-tools-extra/clangd/test/GH75115.test b/clang-tools-extra/clangd/test/GH75115.test new file mode 100644 index 00000000000000..bf6870c714e643 --- /dev/null +++ b/clang-tools-extra/clangd/test/GH75115.test @@ -0,0 +1,12 @@ +// RUN: rm -rf %t.dir && mkdir -p %t.dir +// RUN: echo '[{"directory": "%/t.dir", "command": "clang --target=x86_64-pc-windows-msvc -x c bug.test", "file": "bug.test"}]' > %t.dir/compile_commands.json +// RUN: not clangd -enable-config=0 --compile-commands-dir=%t.dir -check=%s 2>&1 | FileCheck -strict-whitespace %s + +// FIXME: Crashes + +// CHECK: Building preamble... +// CHECK-NEXT: Built preamble +// CHECK-NEXT: Indexing headers... +// CHECK-NEXT: Assertion failed: !KeyInfoT::isEqual(Val, EmptyKey) && !KeyInfoT::isEqual(Val, TombstoneKey) && "Empty/Tombstone value shouldn't be inserted into map!" + +#define assert `````````` </details> https://github.com/llvm/llvm-project/pull/75116 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits