xref: /minix3/external/bsd/llvm/dist/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -verify -fsyntax-only %s
2 // expected-no-diagnostics
3 
4 template<typename T> struct Node {
5 	int lhs;
splayNode6 	void splay( )
7 	{
8 		Node<T> n[1];
9 		(void)n->lhs;
10 	}
11 };
12 
f()13 void f() {
14 	Node<int> n;
15 	return n.splay();
16 }
17