Add include needed for MSVC.
[clang/acc.git] / test / SemaCXX / decltype-overloaded-functions.cpp
blob4c5349b85868155517b748ea5d2c6239cc7b3d02
1 // RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
3 void f();
4 void f(int);
5 decltype(f) a; // expected-error{{can't determine the declared type of an overloaded function}}
7 template<typename T> struct S {
8 decltype(T::f) * f; // expected-error{{can't determine the declared type of an overloaded function}}
9 };
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}}