Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify %s
      2 // expected-no-diagnostics
      3 
      4 template <class> auto fn0 = [] {};
      5 template <typename> void foo0() { fn0<char>(); }
      6 
      7 template<typename T> auto fn1 = [](auto a) { return a + T(1); };
      8 
      9 template <typename X>
     10 int foo2() {
     11   X a = 0x61;
     12   fn1<char>(a);
     13   return 0;
     14 }
     15 
     16 int main() {
     17   foo2<int>();
     18 }
     19