xref: /minix3/external/bsd/llvm/dist/clang/test/CXX/expr/expr.post/expr.type.conv/p1-0x.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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