xref: /minix3/external/bsd/llvm/dist/clang/test/SemaTemplate/instantiate-function-1.mm (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s
2*f4a2713aSLionel Sambuc// XFAIL: *
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuctemplate<typename T> struct Member0 {
5*f4a2713aSLionel Sambuc  void f(T t) {
6*f4a2713aSLionel Sambuc    t;
7*f4a2713aSLionel Sambuc    t.f;
8*f4a2713aSLionel Sambuc    t->f;
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambuc    T* tp;
11*f4a2713aSLionel Sambuc    tp.f;
12*f4a2713aSLionel Sambuc    tp->f;
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel Sambuc    this->f;
15*f4a2713aSLionel Sambuc    this.f; // expected-error{{member reference base type 'struct Member0 *const' is not a structure or union}}
16*f4a2713aSLionel Sambuc  }
17*f4a2713aSLionel Sambuc};
18