1 // RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s
4 template <class U
> U
f();
9 // implicitly rewritten to (*this).b.f<U>()
10 template <class U
> auto f() -> decltype (b
.f
<U
>());
11 template <class U
> auto g() -> decltype (this->b
.f
<U
>());
16 // CHECK: call noundef i32 @_ZN1A1fIiEEDTcldtdtdefpT1b1fIT_EEEv
18 // CHECK: call noundef i32 @_ZN1A1gIiEEDTcldtptfpT1b1fIT_EEEv