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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900210_08.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// g++ 1.36.1 bug 900210_08
3
 
4
// g++ allows pointer-to-const values to be implicitly converted to
5
// void* values.  This causes a silent loss of the const qualifier.
6
 
7
// Cfront 2.0 passes this test.
8
 
9
// keywords: pointer types, implicit type conversions
10
 
11
const char *ccp;
12
void *vp;
13
 
14
void function ()
15
{
16
  vp = ccp;             /* { dg-error "" } */
17
}
18
 
19
int main () { return 0; }

powered by: WebSVN 2.1.0

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