summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-function-1.mm
blob: aa4b941d39cf854e9aa3c7cec3713b31de7e87c7 (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}}
  }
};