Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
c5a332cefb53d9528e33c95694cc6bff9600ff3f
/
.
/
clang
/
test
/
SemaCXX
/
copy-constructor-error.cpp
blob: c50a1579bbdb44950b0c540d2e90ada87bb7179a [
file
] [
log
] [
blame
]
// RUN: clang-cc -fsyntax-only -verify %s
struct
S
{
S
(
S
);
// expected-error {{copy constructor must pass its first argument by reference}}
};
S f
();
void
g
()
{
S a
(
f
()
);
// expected-error {{no matching constructor}}
}