2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / deduct6.C
blob94c6c66003e416f27b7abf1807da1a21f10ffcd5
1 // { dg-do assemble  }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 13 Feb 2001 <nathan@codesourcery.com>
5 // Bug 1962. We were not dealing with qualified array types properly.
7 #include <stdio.h>
9 template <typename T, unsigned I> int Baz (T (&obj)[I])
11   printf ("%s\n", __PRETTY_FUNCTION__);
12   return 1;
15 int main ()
17   static int const ca[1] = {1};
18   static int a[1] = {1};
19   
20   Baz (ca);
21   Baz (a);
22   
23   return 0;