1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | // PR5488 |
4 | |
5 | struct X { |
6 | int x; |
7 | }; |
8 | |
9 | struct Iter { |
10 | X* operator->(); |
11 | }; |
12 | |
13 | template <typename T> |
14 | void Foo() { |
15 | (void)Iter()->x; |
16 | } |
17 | |
18 | void Func() { |
19 | Foo<int>(); |
20 | } |
21 | |
22 |