freebsd-nq/test/SemaCXX/copy-constructor-error.cpp
2010-01-01 10:34:51 +00:00

13 lines
190 B
C++

// 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() );
}