brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 02e45d8 Raw
23 lines · c
1// RUN: %clang_cc1 -dwarf-version=3 -emit-llvm -triple %itanium_abi_triple %s -o - \2// RUN:   -x c -std=c11 -O0 -disable-llvm-passes -debug-info-kind=limited \3// RUN:   | FileCheck --check-prefix=CHECK-C11 %s4// RUN: %clang_cc1 -dwarf-version=3 -emit-llvm -triple %itanium_abi_triple %s -o - \5// RUN:   -x c -std=c17 -O0 -disable-llvm-passes -debug-info-kind=limited \6// RUN:   | FileCheck --check-prefix=CHECK-C17 %s7// RUN: %clang_cc1 -dwarf-version=3 -emit-llvm -triple %itanium_abi_triple %s -o - \8// RUN:   -x c -std=c11 -O0 -disable-llvm-passes -debug-info-kind=limited \9// RUN:   -gstrict-dwarf | FileCheck --check-prefix=CHECK-STRICT %s10// RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -triple %itanium_abi_triple %s -o - \11// RUN:   -x c -std=c11 -O0 -disable-llvm-passes -debug-info-kind=limited \12// RUN:   -gstrict-dwarf | FileCheck --check-prefix=CHECK-C11 %s13 14// CHECK-STRICT: !DICompileUnit(language: DW_LANG_C9915// CHECK-C11: !DICompileUnit(language: DW_LANG_C1116// Update this check once support for DW_LANG_C17 is broadly supported/known in17// consumers. Maybe we'll skip this and go to the DWARFv6 language+version18// encoding that avoids the risk of regression when describing a language19// version newer than what the consumer is aware of.20// CHECK-C17: !DICompileUnit(language: DW_LANG_C1121 22void f1(void) { }23