diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-01-04 22:11:45 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-01-04 22:11:45 +0000 |
| commit | 936dc5638c85fe63608b5bf60b426ee6248e9018 (patch) | |
| tree | 8fd2a92908b29794ac3dd8e5522d4a55d24335df /clang/test | |
| parent | 699e0145882d44d6e181fb2f22d58f83c3ab1888 (diff) | |
| download | bcm5719-llvm-936dc5638c85fe63608b5bf60b426ee6248e9018.tar.gz bcm5719-llvm-936dc5638c85fe63608b5bf60b426ee6248e9018.zip | |
Make sure to use ASTContext::getAs*ArrayType() when decomposing array
types. Fixes APFloat.cpp compilation failure.
llvm-svn: 92523
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp | 2 |
1 files changed, 2 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 9fefbe1b036..167c67d5197 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 @@ -22,12 +22,14 @@ void test_f1(int i, const int ci, volatile int vi) { template<typename T, unsigned N> struct B { }; template<typename T, unsigned N> B<T, N> g0(T (&array)[N]); +template<typename T, unsigned N> B<T, N> g0b(const T (&array)[N]); void test_g0() { int array0[5]; B<int, 5> b0 = g0(array0); const int array1[] = { 1, 2, 3}; B<const int, 3> b1 = g0(array1); + B<int, 3> b2 = g0b(array1); } template<typename T> B<T, 0> g1(const A<T>&); |

