1 // RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -triple %itanium_abi_triple %s -o - \
2 // RUN: -x c++ -std=c++14 -O0 -disable-llvm-passes -debug-info-kind=limited \
3 // RUN: | FileCheck --check-prefix=CHECK-CPP14 %s
4 // RUN: %clang_cc1 -dwarf-version=3 -emit-llvm -triple %itanium_abi_triple %s -o - \
5 // RUN: -x c++ -std=c++14 -O0 -disable-llvm-passes -debug-info-kind=limited \
6 // RUN: | FileCheck --check-prefix=CHECK-CPP14 %s
7 // RUN: %clang_cc1 -dwarf-version=3 -gstrict-dwarf -emit-llvm -triple %itanium_abi_triple %s -o - \
8 // RUN: -x c++ -std=c++14 -O0 -disable-llvm-passes -debug-info-kind=limited | FileCheck %s
9 // RUN: %clang_cc1 -dwarf-version=5 -gstrict-dwarf -emit-llvm -triple %itanium_abi_triple %s -o - \
10 // RUN: -x c++ -std=c++14 -O0 -disable-llvm-passes -debug-info-kind=limited \
11 // RUN: | FileCheck --check-prefix=CHECK-CPP14 %s
12
main()13 int main() {
14 return 0;
15 }
16
17 // CHECK-CPP14: distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14,
18 // CHECK: distinct !DICompileUnit(language: DW_LANG_C_plus_plus,
19