// RUN: %clang_cc1 -fsyntax-only -std=c++03 -Wbind-to-temporary-copy -verify %s
// C++03 requires that we check for a copy constructor when binding a
// reference to a temporary, since we are allowed to make a copy, Even
// though we don't actually make that copy, make sure that we diagnose
// cases where that copy constructor is somehow unavailable. As an
// extension, this is only a warning.
;
;
;
// Check for instantiation of default arguments
T
;
// Check for "dangerous" default arguments that could cause recursion.
;
void ;
void ;
void ;
void ;
void ;
void
// Check that unavailable copy constructors still cause SFINAE failures.
;
T ;
// Would be ambiguous with the next g(), except the instantiation failure in
// sizeof() prevents that.
int &;
float &;
void