From: Douglas Gregor Date: Wed, 6 Jan 2010 22:09:05 +0000 (+0000) Subject: Add test from PR5913, which has already been fixed X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21714013498fd84a6e8d5ceb1af5d14b6531cfb5;p=clang Add test from PR5913, which has already been fixed git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92863 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp b/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp index 167c67d519..19962c5349 100644 --- a/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp +++ b/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp @@ -50,6 +50,19 @@ void test_f2(int i, const int ci, volatile int vi) { A a2 = f2(vi); } +// PR5913 +template +void Foo(const T (&a)[N]) { + T x; + x = 0; +} + +const int a[1] = { 0 }; + +void Test() { + Foo(a); +} + // - The transformed A can be another pointer or pointer to member type that // can be converted to the deduced A via a qualification conversion (4.4). template A f3(T * * const * const);