Home | History | Annotate | Download | only in SemaTemplate
      1 // RUN: %clang_cc1 -std=c++11 -emit-llvm-only %s
      2 
      3 struct X {
      4   template<typename T> static typename T::type g(T t);
      5   template<typename T> auto f(T t) -> decltype(g(t));
      6   void f(...);
      7 };
      8 
      9 void test() {
     10   X().f(0);
     11   X().f(0);
     12 }
     13