[cfe-commits] r73178 - in /cfe/trunk/test: SemaCXX/typename-expression.cpp SemaTemplate/typename-specifier-3.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Jun 10 18:01:03 PDT 2009
Author: efriedma
Date: Wed Jun 10 20:01:02 2009
New Revision: 73178
URL: http://llvm.org/viewvc/llvm-project?rev=73178&view=rev
Log:
Move test to be with the other typename tests.
Added:
cfe/trunk/test/SemaTemplate/typename-specifier-3.cpp (props changed)
- copied unchanged from r73177, cfe/trunk/test/SemaCXX/typename-expression.cpp
Removed:
cfe/trunk/test/SemaCXX/typename-expression.cpp
Removed: cfe/trunk/test/SemaCXX/typename-expression.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/typename-expression.cpp?rev=73177&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/typename-expression.cpp (original)
+++ cfe/trunk/test/SemaCXX/typename-expression.cpp (removed)
@@ -1,19 +0,0 @@
-// RUN: clang-cc -fsyntax-only -verify %s
-
-// PR4364
-template<class T> struct a {
- T b() {
- return typename T::x();
- }
-};
-struct B {
- typedef B x;
-};
-B c() {
- a<B> x;
- return x.b();
-}
-
-// Some extra tests for invalid cases
-template<class T> struct test2 { T b() { return typename T::a; } }; // expected-error{{expected '(' for function-style cast or type construction}}
-template<class T> struct test3 { T b() { return typename a; } }; // expected-error{{expected a qualified name after 'typename'}}
Propchange: cfe/trunk/test/SemaTemplate/typename-specifier-3.cpp
------------------------------------------------------------------------------
svn:mergeinfo =
More information about the cfe-commits
mailing list