Alex Lorenz | 045c514 | 2018-04-07 00:03:27 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: mkdir %t |
| 3 | // 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 |
| 4 | // RUN: %clang -cc1gen-reproducer %t/libclang-* -v | FileCheck %s |
| 5 | |
| 6 | // Invocation file must be removed by clang: |
| 7 | // RUN: ls %t | count 0 |
| 8 | |
| 9 | // CHECK: REPRODUCER METAINFO: {"libclang.operation": "complete", "libclang.opts": "1", "invocation-args": ["-code-completion-at={{.*}}create-libclang-completion-reproducer.c:10:1"]} |
| 10 | |
| 11 | // CHECK: REPRODUCER: |
| 12 | // CHECK-NEXT: { |
| 13 | // CHECK-NEXT: "files":["{{.*}}.c","{{.*}}.sh"] |
| 14 | // CHECK-NEXT: } |