URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// g++ 1.36.1 bug 900210_08
|
// g++ 1.36.1 bug 900210_08
|
|
|
// g++ allows pointer-to-const values to be implicitly converted to
|
// g++ allows pointer-to-const values to be implicitly converted to
|
// void* values. This causes a silent loss of the const qualifier.
|
// void* values. This causes a silent loss of the const qualifier.
|
|
|
// Cfront 2.0 passes this test.
|
// Cfront 2.0 passes this test.
|
|
|
// keywords: pointer types, implicit type conversions
|
// keywords: pointer types, implicit type conversions
|
|
|
const char *ccp;
|
const char *ccp;
|
void *vp;
|
void *vp;
|
|
|
void function ()
|
void function ()
|
{
|
{
|
vp = ccp; /* { dg-error "" } */
|
vp = ccp; /* { dg-error "" } */
|
}
|
}
|
|
|
int main () { return 0; }
|
int main () { return 0; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.