[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-scoped-class.cpp
blobde4aee9a1b448b7e03578abc7a347fa7b63a02e1
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -std=c++11 \
2 // RUN: -triple thumbv7-apple-ios %s -o - | FileCheck %s
4 // This forward-declared scoped enum will be created while building its own
5 // declcontext. Make sure it is only emitted once.
7 struct A {
8 enum class Return;
9 Return f1();
11 A::Return* f2() {}
13 // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "Return",
14 // CHECK-SAME: flags: DIFlagFwdDecl,
15 // CHECK-NOT: tag: DW_TAG_enumeration_type, name: "Return"