Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / deduce1.C
blob262c4fe86e58e372ae3431d2ec8d7d6c6cee9478
1 // { dg-do run }
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 13 Sep 2002 <nathan@codesourcery.com>
6 template <typename T> int Foo (T const *)
8   return 1;
10 template <typename T> int Foo (T const &)
12   return 2;
14 template <typename T, __SIZE_TYPE__ I> int Foo (T const (&ref)[I])
16   return 0;
19 int main ()
21   static int array[4] = {};
22   
23   return Foo (array);