summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-class-limited.cpp
blob: 26ee19f2f422c9c7d9f3fafe09c32db583285521 (plain)
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
// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s

namespace PR16214_1 {
// CHECK: [[PR16214_1:![0-9]*]] = {{.*}} [ DW_TAG_namespace ] [PR16214_1]
// CHECK: = metadata !{i32 {{[0-9]*}}, metadata !{{[0-9]*}}, metadata [[PR16214_1]], {{.*}} ; [ DW_TAG_structure_type ] [foo] {{.*}} [def]
struct foo {
  int i;
};

typedef foo bar;

bar *a;
bar b;
}

namespace test1 {
struct foo {
  int i;
};

foo *bar(foo *a) {
  foo *b = new foo(*a);
  return b;
}
}

namespace test2 {
struct foo {
  int i;
};

extern int bar(foo *a);
int baz(foo *a) {
  return bar(a);
}
}
OpenPOWER on IntegriCloud