Fix the clang-wpa example.
[clang.git] / test / SemaCXX / decltype-overloaded-functions.cpp
blobc11a47ecdf048c6ca9073fd58ef9efc79c3ee540
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
3 void f();
4 void f(int);
5 decltype(f) a; // expected-error{{cannot resolve overloaded function from context}}
7 template<typename T> struct S {
8 decltype(T::f) * f; // expected-error{{cannot resolve overloaded function from context}}
9 };
11 struct K { void f(); void f(int); };
12 S<K> b; // expected-note{{in instantiation of template class 'S<K>' requested here}}