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