1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
6 operator E2
&(); // expected-note 3 {{candidate function}}
10 operator E2
&(); // expected-note 3 {{candidate function}}
17 const E2
&e2
= c
; // expected-error {{reference initialization of type 'const E2 &' with initializer of type 'C' is ambiguous}}
20 void foo(const E2
&);// expected-note{{passing argument to parameter here}}
23 foo(c
); // expected-error {{reference initialization of type 'const E2 &' with initializer of type 'C' is ambiguous}}
25 return c
; // expected-error {{reference initialization of type 'const E2 &' with initializer of type 'C' is ambiguous}}
29 void f(const int * const &) = delete;
33 void g(const int *) = delete;
35 void h1(int *const * const &);
36 void h1(const int *const *) = delete;
37 void h2(const int *const * const &) = delete;
38 void h2(int *const *);
42 // Under CWG2352, this became ambiguous. We order by qualification
43 // conversion even when comparing a reference binding to a
44 // non-reference-binding.