// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// C++03 requires that we check for a copy constructor when binding a
// reference to a reference-compatible rvalue, since we are allowed to
// make a copy. C++0x does not permit the copy, so ensure that we
// don't diagnose cases where the copy constructor is unavailable.
;
;
;
T
;
;
void ;
void ;
void ;
void ;
void ;
void
// Check that unavailable copy constructors do not cause SFINAE failures.
;
T ;
int &; // expected-note{{candidate function [with T = X3]}}
float &; // expected-note{{candidate function [with T = X3]}}
void