llvm-project/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp

17 lines
236 B
C++

// RUN: %clang_cc1 -verify -fsyntax-only %s
// expected-no-diagnostics
template<typename T> struct Node {
int lhs;
void splay( )
{
Node<T> n[1];
(void)n->lhs;
}
};
void f() {
Node<int> n;
return n.splay();
}