Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/deduct6.C

raw
1 // { dg-do assemble }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 13 Feb 2001 <[email protected]>
4
5 // Bug 1962. We were not dealing with qualified array types properly.
6
7 #include <stdio.h>
8
9 template <typename T, unsigned I> int Baz (T (&obj)[I])
10 {
11 printf ("%s\n", __PRETTY_FUNCTION__);
12 return 1;
13 }
14
15 int main ()
16 {
17 static int const ca[1] = {1};
18 static int a[1] = {1};
19
20 Baz (ca);
21 Baz (a);
22
23 return 0;
24 }