]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/decltype-overloaded-functions.cpp
Update clang to r86025.
[FreeBSD/FreeBSD.git] / test / SemaCXX / decltype-overloaded-functions.cpp
1 // RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
2
3 void f();
4 void f(int);
5 decltype(f) a; // expected-error{{can't determine the declared type of an overloaded function}}
6
7 template<typename T> struct S {
8   decltype(T::f) * f; // expected-error{{can't determine the declared type of an overloaded function}}
9 };
10
11 struct K { void f(); void f(int); };
12 S<K> b; // expected-note{{in instantiation of template class 'struct S<struct K>' requested here}}