xref: /llvm-project/clang-tools-extra/test/clang-query/file-query.c (revision 5e9401c2c21efcd55aae42d0b3d68034d344b08d)
1 // RUN: rm -rf %/t
2 // RUN: mkdir %/t
3 // RUN: cp %/S/Inputs/file.script %/t/file.script
4 // RUN: cp %/S/Inputs/runtime_file.script %/t/runtime_file.script
5 // Need to embed the correct temp path in the actual JSON-RPC requests.
6 // RUN: sed -e "s|DIRECTORY|%/t|" %/t/file.script > %/t/file.script.temp
7 
8 // RUN: clang-query -c 'file %/t/file.script.temp' %s -- | FileCheck %s
9 
10 // CHECK: file-query.c:11:1: note: "f" binds here
bar(void)11 void bar(void) {}
12 
13 // CHECK: file-query.c:14:1: note: "v" binds here
14 int baz{1};
15