[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-gline-tables-only.cpp
blobceb7856addc6f4b3e99bcf644b011f04d9309260
1 // RUN: %clang_cc1 %s -fno-rtti -debug-info-kind=line-tables-only -S -emit-llvm -o - | FileCheck %s
2 // RUN: %clang_cc1 %s -fno-rtti -debug-info-kind=line-directives-only -S -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_namespace
7 namespace NS {
8 // CHECK-NOT: DW_TAG_class_type
9 // CHECK-NOT: DW_TAG_friend
10 class C { friend class D; };
11 class D {};
12 // CHECK-NOT: DW_TAG_inheritance
13 class E : public C {
14 // CHECK-NOT: DW_TAG_reference type
15 void x(const D& d);
17 struct F {
18 enum X { };
19 void func(X);
20 virtual ~F();
22 F::~F() {
26 // CHECK-NOT: DW_TAG_variable
27 NS::C c;
28 NS::D d;
29 NS::E e;
30 NS::F f;