URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 10 Jan 2001
|
// Contributed by Nathan Sidwell 10 Jan 2001
|
|
|
// Bug 1588. We ICE'd on reparsing an absdcl as a cast inside a template
|
// Bug 1588. We ICE'd on reparsing an absdcl as a cast inside a template
|
// function.
|
// function.
|
|
|
class A {
|
class A {
|
public:
|
public:
|
template void f(void *CLUTp);
|
template void f(void *CLUTp);
|
};
|
};
|
|
|
template void A::f(void *CLUTp)
|
template void A::f(void *CLUTp)
|
{
|
{
|
void *CLUT;
|
void *CLUT;
|
|
|
CLUT = (unsigned char [3][256])CLUTp; // { dg-error "" } cast to array
|
CLUT = (unsigned char [3][256])CLUTp; // { dg-error "" } cast to array
|
|
|
return;
|
return;
|
}
|
}
|
|
|
|
|
int main()
|
int main()
|
{
|
{
|
A myobj;
|
A myobj;
|
unsigned char t[3][256];
|
unsigned char t[3][256];
|
|
|
myobj.f(t);
|
myobj.f(t);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.