aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-inlined.cpp
blob: 9969ef79ca7ef13cb18731a1cc1d15d4a4334f0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// RUN: %clang_cc1 -emit-llvm -triple i686-pc-windows-msvc19.0.24213 -gcodeview -debug-info-kind=limited -std=c++14 %s -o - | FileCheck %s
// PR33997.
struct already_AddRefed {
  ~already_AddRefed();
};
struct RefPtr {
  operator int *();
};
struct ServoCssRulesStrong {
  already_AddRefed Consume();
};
struct GroupRule {
  GroupRule(already_AddRefed);
};
class ConditionRule : GroupRule {
  using GroupRule::GroupRule;
};
class CSSMediaRule : ConditionRule {
  using ConditionRule::ConditionRule;
};
class CSSMozDocumentRule : ConditionRule {
  using ConditionRule::ConditionRule;
};
class ServoDocumentRule : CSSMozDocumentRule {
  ServoDocumentRule(RefPtr);
};
class ServoMediaRule : CSSMediaRule {
  ServoMediaRule(RefPtr);
};
ServoCssRulesStrong Servo_MediaRule_GetRules(int *);
ServoCssRulesStrong Servo_DocumentRule_GetRules(int *);
ServoDocumentRule::ServoDocumentRule(RefPtr aRawRule)
    : CSSMozDocumentRule(Servo_DocumentRule_GetRules(aRawRule).Consume()) {}

ServoMediaRule::ServoMediaRule(RefPtr aRawRule)
    : CSSMediaRule(Servo_MediaRule_GetRules(aRawRule).Consume()) {}

// CHECK: define{{.*}}ServoMediaRule
// CHECK-NOT: {{ ret }}
// CHECK: store %class.ConditionRule* %
// CHECK-SAME: %class.ConditionRule** %
// CHECK-SAME: !dbg ![[INL:[0-9]+]]

// CHECK: ![[INL]] = !DILocation(line: 16, scope: ![[SP:[0-9]+]], inlinedAt:
// CHECK: ![[SP]] = distinct !DISubprogram(name: "GroupRule", {{.*}}isDefinition: true