mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 00:40:33 -05:00
12 lines
190 B
C++
12 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() );
|
|
}
|
|
|