URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 13 Feb 2001
|
// Contributed by Nathan Sidwell 13 Feb 2001
|
|
|
// Bug 1962. We were not dealing with qualified array types properly.
|
// Bug 1962. We were not dealing with qualified array types properly.
|
|
|
#include
|
#include
|
|
|
template int Baz (T (&obj)[I])
|
template int Baz (T (&obj)[I])
|
{
|
{
|
printf ("%s\n", __PRETTY_FUNCTION__);
|
printf ("%s\n", __PRETTY_FUNCTION__);
|
return 1;
|
return 1;
|
}
|
}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
static int const ca[1] = {1};
|
static int const ca[1] = {1};
|
static int a[1] = {1};
|
static int a[1] = {1};
|
|
|
Baz (ca);
|
Baz (ca);
|
Baz (a);
|
Baz (a);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.