OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [deduct6.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Copyright (C) 2000 Free Software Foundation, Inc.
3
// Contributed by Nathan Sidwell 13 Feb 2001 
4
 
5
// Bug 1962. We were not dealing with qualified array types properly.
6
 
7
#include 
8
 
9
template  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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.