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
[lldb] Implement basic support for reverse-continue (#112079)
[llvm-project.git]
/
clang
/
test
/
CXX
/
class.access
/
class.protected
/
p1-cxx11.cpp
blob
c1cf047aadb461da1d4be845970d841db3d7f9f2
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
4
// PR12497
5
namespace
test0
{
6
class
A
{
7
protected
:
8
A
() {}
9
A
(
const
A
&) {}
10
~
A
() {}
11
A
&
operator
=(
const
A
&
a
) {
return
*
this
; }
12
};
13
14
class
B
:
public
A
{};
15
16
void
test
() {
17
B b1
;
18
B b2
=
b1
;
19
b1
=
b2
;
20
}
21
}