diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-01-06 22:09:05 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-01-06 22:09:05 +0000 |
| commit | b3d8deecbfd2462e249f81b2f9a077abaffd4c7f (patch) | |
| tree | e0378fba5621f266d0e2ef5ea7f58197bd65f591 /clang/test | |
| parent | 2ce81adbb3457d70ce2713ba9e59dd2bf08fb48c (diff) | |
| download | bcm5719-llvm-b3d8deecbfd2462e249f81b2f9a077abaffd4c7f.tar.gz bcm5719-llvm-b3d8deecbfd2462e249f81b2f9a077abaffd4c7f.zip | |
Add test from PR5913, which has already been fixed
llvm-svn: 92863
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp index 167c67d5197..19962c53490 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp +++ b/clang/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<volatile int> a2 = f2(vi); } +// PR5913 +template <typename T, int N> +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<typename T> A<T> f3(T * * const * const); |

