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