summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/deduct6.C
blob: 94c6c66003e416f27b7abf1807da1a21f10ffcd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do assemble  }
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 13 Feb 2001 <nathan@codesourcery.com>

// Bug 1962. We were not dealing with qualified array types properly.

#include <stdio.h>

template <typename T, unsigned I> int Baz (T (&obj)[I])
{
  printf ("%s\n", __PRETTY_FUNCTION__);
  return 1;
}

int main ()
{
  static int const ca[1] = {1};
  static int a[1] = {1};
  
  Baz (ca);
  Baz (a);
  
  return 0;
}