[cfe-commits] r103252 - /cfe/trunk/test/CXX/expr/expr.post/expr.ref/p3.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Fri May 7 04:15:33 PDT 2010
Author: cornedbee
Date: Fri May 7 06:15:33 2010
New Revision: 103252
URL: http://llvm.org/viewvc/llvm-project?rev=103252&view=rev
Log:
Test case for my last fix.
Added:
cfe/trunk/test/CXX/expr/expr.post/expr.ref/p3.cpp
Added: cfe/trunk/test/CXX/expr/expr.post/expr.ref/p3.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.post/expr.ref/p3.cpp?rev=103252&view=auto
==============================================================================
--- cfe/trunk/test/CXX/expr/expr.post/expr.ref/p3.cpp (added)
+++ cfe/trunk/test/CXX/expr/expr.post/expr.ref/p3.cpp Fri May 7 06:15:33 2010
@@ -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();
+}
More information about the cfe-commits
mailing list