20 lines · c
1// We support the CC1 options for testing whether each LLVM pass preserves2// original debug info.3 4// RUN: %clang -g -Xclang -fverify-debuginfo-preserve -### %s 2>&1 \5// RUN: | FileCheck --check-prefix=VERIFYDIPRESERVE %s6 7// VERIFYDIPRESERVE: "-fverify-debuginfo-preserve"8 9// RUN: %clang -g -Xclang -fverify-debuginfo-preserve \10// RUN: -Xclang -fverify-debuginfo-preserve-export=%t.json -### %s 2>&1 \11// RUN: | FileCheck --check-prefix=VERIFYDIPRESERVE-JSON-EXPORT %s12 13// VERIFYDIPRESERVE-JSON-EXPORT: "-fverify-debuginfo-preserve"14// VERIFYDIPRESERVE-JSON-EXPORT: "-fverify-debuginfo-preserve-export={{.*}}"15 16// RUN: %clang -g -Xclang -fverify-debuginfo-preserve-export=%t.json %s -S -o /dev/null 2>&1 \17// RUN: | FileCheck --check-prefix=WARN %s18 19// WARN: warning: ignoring -fverify-debuginfo-preserve-export20