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 -test-load-source all %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 // RUN: rm -rf %t 11 // RUN: mkdir %t 12 // RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all "-remap-file=%s,%S/Inputs/record-parsing-invocation-remap.c" %s 13 // RUN: %clang -cc1gen-reproducer %t/libclang-* -v | FileCheck %s 14 15 #pragma clang __debug parser_crash 16 17 // CHECK: REPRODUCER METAINFO: {"libclang.operation": "parse", "libclang.opts": "1"} 18 19 // CHECK: REPRODUCER: 20 // CHECK-NEXT: { 21 // CHECK-NEXT: "files":["{{.*}}.c","{{.*}}.sh"] 22 // CHECK-NEXT: } 23