1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // PR5426 - the non-dependent obj would be fully processed and wrapped in a
5 // CXXConstructExpr at definition time, which would lead to a failure at
12 oldstylemove(oldstylemove
&);
13 oldstylemove(const arg
&);
17 void fn(T t
, const arg
& arg
) {
18 oldstylemove
obj(arg
);
28 explicit X1(const X0
&x0
= X0());
36 template void f0
<int>();
37 template void f0
<float>();
44 template<int N
> void f1() {
47 template<> void f1
<2>();
50 struct S
{ short inner_s
; };
58 void OpenFileSession() {
59 // Ensure that we don't think the ImplicitValueInitExpr generated here
60 // during the initial parse only initializes the first array element!
61 outer_struct asdfasdf
= {};
65 OpenFileSession
<int>();