[Clang][SME2] Fix PSEL builtin predicates (#77097)
[llvm-project.git] / clang / test / CodeGen / debug-info-codeview-unnamed.c
blob16ffb3682236f1856380ab63a05d53387f63f920
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -debug-info-kind=limited -S -emit-llvm -o - %s | FileCheck --check-prefix LINUX %s
2 // RUN: %clang_cc1 -triple x86_64-windows-msvc -debug-info-kind=limited -gcodeview -S -emit-llvm -o - %s | FileCheck --check-prefix MSVC %s
4 int main(int argc, char* argv[], char* arge[]) {
6 // In both DWARF and CodeView, an unnamed C structure type will generate a
7 // DICompositeType without a name or identifier attribute;
8 //
9 struct { int bar; } one = {42};
11 // LINUX: [[TYPE_OF_ONE:![0-9]+]] = distinct !DICompositeType(
12 // LINUX-SAME: tag: DW_TAG_structure_type
13 // LINUX-NOT: name:
14 // LINUX-NOT: identifier:
15 // LINUX-SAME: )
16 // LINUX: !{{[0-9]+}} = !DILocalVariable(name: "one"
17 // LINUX-SAME: type: [[TYPE_OF_ONE]]
18 // LINUX-SAME: )
20 // MSVC: [[TYPE_OF_ONE:![0-9]+]] = distinct !DICompositeType
21 // MSVC-SAME: tag: DW_TAG_structure_type
22 // MSVC-NOT: name:
23 // MSVC-NOT: identifier:
24 // MSVC-SAME: )
25 // MSVC: !{{[0-9]+}} = !DILocalVariable(name: "one"
26 // MSVC-SAME: type: [[TYPE_OF_ONE]]
27 // MSVC-SAME: )
29 return 0;