view clang/test/Driver/verify-debug-info-preservation.c @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 79ff65ed7e25
children
line wrap: on
line source

// We support the CC1 options for testing whether each LLVM pass preserves
// original debug info.

// RUN: %clang -g -Xclang -fverify-debuginfo-preserve -### %s 2>&1 \
// RUN:     | FileCheck --check-prefix=VERIFYDIPRESERVE %s

// VERIFYDIPRESERVE: "-fverify-debuginfo-preserve"

// RUN: %clang -g -Xclang -fverify-debuginfo-preserve \
// RUN:     -Xclang -fverify-debuginfo-preserve-export=%t.json -### %s 2>&1 \
// RUN:     | FileCheck --check-prefix=VERIFYDIPRESERVE-JSON-EXPORT %s

// VERIFYDIPRESERVE-JSON-EXPORT: "-fverify-debuginfo-preserve"
// VERIFYDIPRESERVE-JSON-EXPORT: "-fverify-debuginfo-preserve-export={{.*}}"

// RUN: %clang -g -Xclang -fverify-debuginfo-preserve-export=%t.json %s -S -o /dev/null 2>&1 \
// RUN:     | FileCheck --check-prefix=WARN %s

// WARN: warning: ignoring -fverify-debuginfo-preserve-export