blob: 2ecded05d9791345f62458d496e43cc1b329e6ab [file] [log] [blame]
Richard Smith762bb9d2011-10-13 22:29:44 +00001// RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
Richard Smith3e4c6c42011-05-05 21:57:07 +00002
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};