p3.cpp 236 B

12345678910111213141516
  1. // RUN: %clang_cc1 -verify -fsyntax-only %s
  2. // expected-no-diagnostics
  3. template<typename T> struct Node {
  4. int lhs;
  5. void splay( )
  6. {
  7. Node<T> n[1];
  8. (void)n->lhs;
  9. }
  10. };
  11. void f() {
  12. Node<int> n;
  13. return n.splay();
  14. }