[clang-tools-extra] 04580ed - [clangd] Add test for GH75115 (#75116)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 12 20:50:08 PST 2023
Author: Matheus Izvekov
Date: 2023-12-13T05:50:05+01:00
New Revision: 04580edd8a394dc2ccee7363c8a41ee05b1a6b98
URL: https://github.com/llvm/llvm-project/commit/04580edd8a394dc2ccee7363c8a41ee05b1a6b98
DIFF: https://github.com/llvm/llvm-project/commit/04580edd8a394dc2ccee7363c8a41ee05b1a6b98.diff
LOG: [clangd] Add test for GH75115 (#75116)
Add test for https://github.com/llvm/llvm-project/issues/75115
Added:
clang-tools-extra/clangd/test/GH75115.test
Modified:
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/test/GH75115.test b/clang-tools-extra/clangd/test/GH75115.test
new file mode 100644
index 00000000000000..030392f1d69b30
--- /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 GH75115.test", "file": "GH75115.test"}]' > %t.dir/compile_commands.json
+// RUN: not --crash 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: !KeyInfoT::isEqual(Val, EmptyKey) && !KeyInfoT::isEqual(Val, TombstoneKey) && "Empty/Tombstone value shouldn't be inserted into map!"
+
+#define assert
More information about the cfe-commits
mailing list