bolt/deps/llvm-18.1.8/clang/test/Driver/dwarf-target-version-clamp.cu
2025-02-14 19:21:04 +01:00

13 lines
596 B
Text

// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
// Verify that DWARF version is properly clamped for nvptx, but not for the host.
// RUN: not %clang -### --target=x86_64-linux-gnu -c %s -gdwarf-5 -gembed-source 2>&1 \
// RUN: | FileCheck %s --check-prefix=DWARF-CLAMP
// RUN: not %clang -### --target=x86_64-linux-gnu -c %s -ggdb -gembed-source -gdwarf-5 2>&1 \
// RUN: | FileCheck %s --check-prefix=DWARF-CLAMP
// DWARF-CLAMP: "-triple" "nvptx64-nvidia-cuda"
// DWARF-CLAMP-SAME: -dwarf-version=2
// DWARF-CLAMP: "-triple" "x86_64
// DWARF-CLAMP-SAME: -dwarf-version=5