1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 2 // expected-no-diagnostics 3 4 struct foo { 5 foo(); 6 foo(int); 7 }; 8 func(foo & f)9 int func(foo& f) { 10 decltype(foo())(); 11 f = (decltype(foo()))5; 12 return decltype(3)(5); 13 } 14