[clang-tools-extra] Fix a link in ReleaseNotes.rst
[llvm-project.git] / clang-tools-extra / clangd / test / crash-preamble.test
blob7d767208b99639c8b51f76b2bba9b8af3eb12369
1 # RUN: not --crash clangd -lit-test < %s 2> %t.err
2 # RUN: FileCheck %s < %t.err --check-prefixes=CHECK,CHECK-SYNC
3 # RUN: not --crash clangd -lit-test -sync=0 < %s 2> %t.async.err
4 # RUN: FileCheck %s < %t.async.err
5 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{}}
6 ---
7 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{
8   "uri":"test:///foo.cc",
9   "languageId":"cpp",
10   "text":"#pragma clang __debug llvm_fatal_error"
11 }}}
12 ---
13 {"jsonrpc":"2.0","id":1,"method":"sync","params":{}}
14 #      CHECK:  Signalled while building preamble
15 # CHECK-NEXT:  Filename: foo.cc
16 # CHECK-SYNC: Signalled during AST worker action: Update
17 # CHECK-SYNC:   Filename: foo.cc
18 # CHECK-SYNC: Signalled while processing message:
19 # CHECK-SYNC:   "languageId":"cpp"