]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/copy-constructor-error.cpp
Updaet clang to 92395.
[FreeBSD/FreeBSD.git] / test / SemaCXX / copy-constructor-error.cpp
1 // RUN: %clang_cc1 -fsyntax-only -verify %s 
2
3 struct S {
4    S (S);  // expected-error {{copy constructor must pass its first argument by reference}}
5 };
6
7 S f();
8
9 void g() { 
10   S a( f() );
11 }
12