summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-function-1.mm
blob: c67b5985f63f605aeb0473572557da3d69e16d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -fsyntax-only -verify %s
// XFAIL: *

template<typename T> struct Member0 {
  void f(T t) {
    t;
    t.f;
    t->f;
    
    T* tp;
    tp.f;
    tp->f;

    this->f;
    this.f; // expected-error{{member reference base type 'struct Member0 *const' is not a structure or union}}
  }
};