1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
15 template<typename A
, typename B
, typename C
, typename D
, typename E
>
16 void func(A
, B
, C
, D
, E
);
18 void func(int a
, int c
) {
26 T(*g
)(double(3)); // expected-error{{cannot initialize a variable of type 'T (*)' with an rvalue of type 'double'}}
30 void func2(int a
, int c
) {
31 decltype(T())(a
)->m
= 7;
33 decltype(T())(a
,5)<<c
;
35 decltype(T())(*d
)(int);
37 decltype(T())(f
) = {1, 2};
38 decltype(T())(*g
)(double(3)); // expected-error{{cannot initialize a variable of type 'decltype(T()) (*)' (aka 'T *') with an rvalue of type 'double'}}