Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
      2 
      3 template<typename T> using id = T;
      4 struct S {
      5   template<typename T, int N>
      6     operator id<T[N]>&();
      7   template<typename T, typename U>
      8     operator id<T (U::*)()>() const;
      9 };
     10 
     11 void f() {
     12   int (&a)[42] = S(); // CHECK: @_ZN1ScvRAT0__T_IiLi42EEEv(
     13   char (S::*fp)() = S(); // CHECK: @_ZNK1ScvMT0_FT_vEIcS_EEv(
     14 };
     15