Richard Smith | 9ca5c42 | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s |
Richard Smith | 3f1b5d0 | 2011-05-05 21:57:07 +0000 | [diff] [blame] | 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 | }; |