[AArch64] Add fpext and fpround costs (#119292)
[llvm-project.git] / clang / test / CodeGen / debug-info-gline-tables-only.c
blob6321edd3600b9628aa4fb5d15f73f3f51ef30fd6
1 // RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -emit-llvm -o - | FileCheck %s
2 // RUN: %clang_cc1 %s -debug-info-kind=line-directives-only -emit-llvm -o - | FileCheck %s
3 // Checks that clang with "-gline-tables-only" or "-gline-directives-only" doesn't emit debug info
4 // for variables and types.
6 // CHECK-NOT: DW_TAG_variable
7 int global = 42;
9 // CHECK-NOT: DW_TAG_typedef
10 // CHECK-NOT: DW_TAG_const_type
11 // CHECK-NOT: DW_TAG_pointer_type
12 // CHECK-NOT: DW_TAG_array_type
13 typedef const char* constCharPtrArray[10];
15 // CHECK-NOT: DW_TAG_structure_type
16 struct S {
17 // CHECK-NOT: DW_TAG_member
18 char a;
19 double b;
20 constCharPtrArray c;
23 // CHECK-NOT: DW_TAG_enumerator
24 // CHECK-NOT: DW_TAG_enumeration_type
25 enum E { ZERO = 0, ONE = 1 };
27 // CHECK-NOT: DILocalVariable
28 int sum(int p, int q) {
29 int r = p + q;
30 struct S s;
31 enum E e;
32 return r;