blob: 262c4fe86e58e372ae3431d2ec8d7d6c6cee9478 [file] [log] [blame]
Daniel Dunbarbf4199e2010-07-30 23:02:49 +00001// { dg-do run }
2
3// Copyright (C) 2002 Free Software Foundation, Inc.
4// Contributed by Nathan Sidwell 13 Sep 2002 <nathan@codesourcery.com>
5
6template <typename T> int Foo (T const *)
7{
8 return 1;
9}
10template <typename T> int Foo (T const &)
11{
12 return 2;
13}
14template <typename T, __SIZE_TYPE__ I> int Foo (T const (&ref)[I])
15{
16 return 0;
17}
18
19int main ()
20{
21 static int array[4] = {};
22
23 return Foo (array);
24}
25