blob: c67b5985f63f605aeb0473572557da3d69e16d0c [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Daniel Dunbard7390212009-11-03 07:25:45 +00002// XFAIL: *
Daniel Dunbar8bf0ccd2009-07-25 12:47:38 +00003
Anders Carlsson4ef27702009-05-16 20:31:20 +00004template<typename T> struct Member0 {
5 void f(T t) {
6 t;
7 t.f;
8 t->f;
9
10 T* tp;
11 tp.f;
12 tp->f;
13
14 this->f;
15 this.f; // expected-error{{member reference base type 'struct Member0 *const' is not a structure or union}}
16 }
17};