blob: de4aee9a1b448b7e03578abc7a347fa7b63a02e1 [file] [log] [blame]
Adrian Prantla40030f2016-02-06 01:59:09 +00001// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -std=c++11 \
2// RUN: -triple thumbv7-apple-ios %s -o - | FileCheck %s
3
4// This forward-declared scoped enum will be created while building its own
5// declcontext. Make sure it is only emitted once.
6
7struct A {
8 enum class Return;
9 Return f1();
10};
11A::Return* f2() {}
12
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"