llvm-for-llvmta/tools/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp

17 lines
236 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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();
}