]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/copy-constructor-error.cpp
Update clang to r86140.
[FreeBSD/FreeBSD.git] / test / SemaCXX / copy-constructor-error.cpp
1 // RUN: clang-cc -fsyntax-only -verify %s 
2
3 struct S { // expected-note {{candidate function}} 
4    S (S);  // expected-error {{copy constructor must pass its first argument by reference}} \\
5            // expected-note {{candidate function}}
6 };
7
8 S f();
9
10 void g() { 
11   S a( f() );  // expected-error {{call to constructor of 'a' is ambiguous}}
12 }
13