Test case for my last fix.

llvm-svn: 103252
This commit is contained in:
Sebastian Redl 2010-05-07 11:15:33 +00:00
parent 4c91c526ca
commit 872fad8627
1 changed files with 15 additions and 0 deletions

View File

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