Daniel Dunbar | 8bf0ccd | 2009-07-25 12:47:38 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Daniel Dunbar | d739021 | 2009-11-03 07:25:45 +0000 | [diff] [blame^] | 2 | // XFAIL: * |
Daniel Dunbar | 8bf0ccd | 2009-07-25 12:47:38 +0000 | [diff] [blame] | 3 | |
Anders Carlsson | 4ef2770 | 2009-05-16 20:31:20 +0000 | [diff] [blame] | 4 | template<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 | }; |