]> granicus.if.org Git - clang/commitdiff
Test case for my last fix.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Fri, 7 May 2010 11:15:33 +0000 (11:15 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Fri, 7 May 2010 11:15:33 +0000 (11:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103252 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/expr/expr.post/expr.ref/p3.cpp [new file with mode: 0644]

diff --git a/test/CXX/expr/expr.post/expr.ref/p3.cpp b/test/CXX/expr/expr.post/expr.ref/p3.cpp
new file mode 100644 (file)
index 0000000..98771d3
--- /dev/null
@@ -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();
+}