Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeGenCXX/debug-info-scoped-class.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // 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 | |
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" |