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
/
SemaCXX
/
thread-safety-reference-handling.cpp
blob
2f7eb48d3436611ffca1bf2a8ca789c31d3a2f3b
1
// RUN: %clang_cc1 -fsyntax-only -verify -Wthread-safety-analysis -std=c++11 %s
2
// expected-no-diagnostics
3
4
class
Base
{
5
public
:
6
Base
() {}
7
virtual
~
Base
();
8
};
9
10
class
S
:
public
Base
{
11
public
:
12
~
S
()
override
=
default
;
13
};
14
15
void
Test
() {
16
const
S
&
s
=
S
();
17
}