Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
86fa4311c8a330957ff5b765fbb0a7750ecd38c9
/
.
/
test
/
SemaCXX
/
copy-constructor-error.cpp
blob: 9cae77504b514a3597ecfe03daa35102239f903a [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -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
()
);
}