brintos

brintos / llvm-project-archived public Read only

0
0
Text · 555 B · 910e9cb Raw
11 lines · plain
1// Verify that DWARF version is properly clamped for nvptx, but not for the host.2// RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -nogpuinc -c %s -gdwarf-5 -gembed-source 2>&1 \3// RUN: | FileCheck %s --check-prefix=DWARF-CLAMP4// RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -nogpuinc -c %s -ggdb -gembed-source -gdwarf-5 2>&1 \5// RUN: | FileCheck %s --check-prefix=DWARF-CLAMP6 7// DWARF-CLAMP: "-triple" "nvptx64-nvidia-cuda"8// DWARF-CLAMP-SAME: -dwarf-version=29// DWARF-CLAMP: "-triple" "x86_6410// DWARF-CLAMP-SAME: -dwarf-version=511