view clang/test/Index/create-libclang-parsing-reproducer.c @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 1f2b6ac9f198
line wrap: on
line source

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: env CINDEXTEST_INVOCATION_EMISSION_PATH=%t not c-index-test -test-load-source all %s
// RUN: %clang -cc1gen-reproducer %t/libclang-* -v | FileCheck %s

// Invocation file must be removed by clang:
// RUN: ls %t | count 0

// RUN: rm -rf %t
// RUN: mkdir %t
// 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
// RUN: %clang -cc1gen-reproducer %t/libclang-* -v | FileCheck %s

#pragma clang __debug parser_crash

// CHECK: REPRODUCER METAINFO: {"libclang.operation": "parse", "libclang.opts": "1"}

// CHECK: REPRODUCER:
// CHECK-NEXT: {
// CHECK-NEXT: "files":["{{.*}}.c","{{.*}}.sh"]
// CHECK-NEXT: }