[cfe-commits] r77325 - /cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp

Douglas Gregor dgregor at apple.com
Tue Jul 28 09:39:54 PDT 2009


Author: dgregor
Date: Tue Jul 28 11:39:54 2009
New Revision: 77325

URL: http://llvm.org/viewvc/llvm-project?rev=77325&view=rev
Log:
Add a template test that requires canonical expression comparison

Added:
    cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp   (with props)

Added: cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp?rev=77325&view=auto

==============================================================================
--- cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp (added)
+++ cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp Tue Jul 28 11:39:54 2009
@@ -0,0 +1,17 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+// XFAIL
+
+template<int N, int M>
+struct A0 {
+  void g0();
+};
+
+template<int X, int Y> void f0(A0<X, Y>) { } // expected-note{{previous}}
+template<int N, int M> void f0(A0<M, N>) { }
+template<int V1, int V2> void f0(A0<V1, V2>) { } // expected-error{{redefinition}}
+
+template<int X, int Y> void f1(A0<0, (X + Y)>) { } // expected-note{{previous}}
+template<int X, int Y> void f1(A0<0, (X - Y)>) { }
+template<int A, int B> void f1(A0<0, (A + B)>) { } // expected-error{{redefinition}}
+
+template<int X, int Y> void A0<X, Y>::g0() { }

Propchange: cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp

------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp

------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: cfe/trunk/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p6.cpp

------------------------------------------------------------------------------
    svn:mime-type = text/plain





More information about the cfe-commits mailing list