repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Teach TreeTransform how to transform a pack expansion type into
[clang.git]
/
test
/
CodeGenCXX
/
destructor-debug-info.cpp
blob
9e32275d3394927c30fab0d72e992c80cdc5f86c
1
// RUN: %clang_cc1 -g -S -emit-llvm -o %t %s
2
// RUN: grep "i32 20, i32 3, metadata" %t | count 1
3
// Check there is a line number entry for line 20 where b1 is destructed.
4
class
A
{
int
a
; };
5
class
B
{
6
public
:
7
B
() {
a
=
new
A
; }
8
~
B
() {
delete
a
; }
9
private
:
10
A
*
a
;
11
};
12
13
void
fn
(
B b
);
14
15
int
i
;
16
void
foo
() {
17
if
(
i
) {
18
B b1
;
19
fn
(
b1
);
20
}
21
}