aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/copy-constructor-error.cpp
blob: c50a1579bbdb44950b0c540d2e90ada87bb7179a (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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}}
}