Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
4a529d26d6ccfc9b3d11031f1256f4f87055c562
/
.
/
test
/
CXX
/
class.access
/
class.protected
/
p1-cxx11.cpp
blob: dc9b20d17c0e374376a6314e266cb6a230c7a63f [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify %s
// PR12497
namespace
test0
{
class
A
{
protected
:
A
()
{}
A
(
const
A
&)
{}
~
A
()
{}
A
&
operator
=(
const
A
&
a
)
{
return
*
this
;
}
};
class
B
:
public
A
{};
void
test
()
{
B b1
;
B b2
=
b1
;
b1
=
b2
;
}
}