| 1 |
// RUN: export LSAN_OPTIONS=detect_leaks=0 |
| 2 |
// RUN: rm -rf %t |
| 3 |
// RUN: mkdir %t |
| 4 |
// RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -code-completion-at=%s:10:1 "-remap-file=%s,%S/Inputs/record-parsing-invocation-remap.c" %s |
| 5 |
// RUN: %clang -cc1gen-reproducer %t/libclang-* -v | FileCheck %s |
| 6 |
|
| 7 |
// Invocation file must be removed by clang: |
| 8 |
// RUN: ls %t | count 0 |
| 9 |
|
| 10 |
// CHECK: REPRODUCER METAINFO: {"libclang.operation": "complete", "libclang.opts": "1", "invocation-args": ["-code-completion-at={{.*}}create-libclang-completion-reproducer.c:10:1"]} |
| 11 |
|
| 12 |
// CHECK: REPRODUCER: |
| 13 |
// CHECK-NEXT: { |
| 14 |
// CHECK-NEXT: "files":["{{.*}}.c","{{.*}}.sh"] |
| 15 |
// CHECK-NEXT: } |