repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaTemplate
/
defaulted-destructor-in-temporary.cpp
blob
cbd4950c6af8e9c0a42d8d4f0649246a55cf3f25
1
// RUN: %clang_cc1 -std=c++11 -triple=x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s
2
3
// CHECK: define linkonce_odr {{.*}} @_ZN3StrD1Ev
4
5
class
A
{
6
public
:
7
~
A
();
8
};
9
class
Str
{
10
A d
;
11
12
public
:
13
~
Str
() =
default
;
14
};
15
class
E
{
16
Str s
;
17
template
<
typename
>
18
void
h
() {
19
s
= {};
20
}
21
void
f
();
22
};
23
void
E
::
f
() {
24
h
<
int
>();
25
}