23 lines · c
1// RUN: export LSAN_OPTIONS=detect_leaks=02// RUN: rm -rf %t3// RUN: mkdir %t4// RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s5// RUN: %clang -cc1gen-reproducer %t/libclang-* -v | FileCheck %s6 7// Invocation file must be removed by clang:8// RUN: ls %t | count 09 10// RUN: rm -rf %t11// RUN: mkdir %t12// 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" %s13// RUN: %clang -cc1gen-reproducer %t/libclang-* -v | FileCheck %s14 15#pragma clang __debug parser_crash16 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