[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGen / debug-info-programming-language.c
blob02e45d89ca15ea629c540959da17027546b1f964
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 %s
4 // 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 %s
7 // 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 %s
10 // 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 %s
14 // CHECK-STRICT: !DICompileUnit(language: DW_LANG_C99
15 // CHECK-C11: !DICompileUnit(language: DW_LANG_C11
16 // Update this check once support for DW_LANG_C17 is broadly supported/known in
17 // consumers. Maybe we'll skip this and go to the DWARFv6 language+version
18 // encoding that avoids the risk of regression when describing a language
19 // version newer than what the consumer is aware of.
20 // CHECK-C17: !DICompileUnit(language: DW_LANG_C11
22 void f1(void) { }