blob: 2132eff5e511f5d67ffe0fec7350dcd9b93bf33d [file] [log] [blame]
Richard Smith3e4c6c42011-05-05 21:57:07 +00001// RUN: %clang_cc1 -std=c++0x -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
2
3template<typename T> using id = T;
4struct 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
11void f() {
12 int (&a)[42] = S(); // CHECK: @_ZN1ScvRAT0__T_IiLi42EEEv(
13 char (S::*fp)() = S(); // CHECK: @_ZNK1ScvMT0_FT_vEIcS_EEv(
14};