// RUN: %clang_cc1 -fsyntax-only -verify %s
;
;
;
int i;
apply<add_pointer, int>::type ip = &i;
apply<add_reference, int>::type ir = i;
apply<add_reference, float>::type fr = i; // expected-error{{non-const lvalue reference to type 'float' cannot bind to a value of unrelated type 'int'}}
// Template template parameters
; // expected-note{{has a different type 'int'}}
// expected-error{{cannot have type 'float'}} \
// expected-note{{with type 'long'}}
;
X0<int, B> x0b1;
X0<float, B> x0b2; // expected-note{{while substituting}}
X0<long, B> x0b3; // expected-error{{template template argument has different template parameters}}
// expected-note{{parameter with type 'int'}}
;
;
;
; // expected-note{{different type 'long'}}
X2<int, X3i> x2okay;
X2<long, X3l> x2bad; // expected-note{{instantiation}}
;