| 1 |
// RUN: %clang_cc1 -Wno-error=return-type -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 |
|
| 7 |
struct A { |
| 8 |
enum class Return; |
| 9 |
Return f1(); |
| 10 |
}; |
| 11 |
A::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" |