blob: 7f0ef0c990ad0ae72d06c916c1f75872e3d76b90 [file] [log] [blame]
Eli Friedman1a3c75f2009-11-16 19:13:03 +00001// RUN: clang-cc -fsyntax-only -verify %s
2// PR5488
3
4struct X {
5 int x;
6};
7
8struct Iter {
9 X* operator->();
10};
11
12template <typename T>
13void Foo() {
14 (void)Iter()->x;
15}
16
17void Func() {
18 Foo<int>();
19}
20