[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / dwarf-target-version-clamp.cu
blob702bafc5ebb0c94f5c22ce020b1e9a8d569a647a
1 // REQUIRES: x86-registered-target
2 // REQUIRES: nvptx-registered-target
4 // Verify that DWARF version is properly clamped for nvptx, but not for the host.
5 // RUN: %clang -### -target x86_64-linux-gnu -c %s -gdwarf-5 -gembed-source 2>&1 \
6 // RUN: | FileCheck %s --check-prefix=DWARF-CLAMP
7 // RUN: %clang -### -target x86_64-linux-gnu -c %s -ggdb -gembed-source -gdwarf-5 2>&1 \
8 // RUN: | FileCheck %s --check-prefix=DWARF-CLAMP
10 // DWARF-CLAMP: "-triple" "nvptx64-nvidia-cuda"
11 // DWARF-CLAMP-SAME: -dwarf-version=2
12 // DWARF-CLAMP: "-triple" "x86_64
13 // DWARF-CLAMP-SAME: -dwarf-version=5