mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
341 B
C
20 lines
341 B
C
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/cconst1.c(104): Error: cannot modify `const` expression `i`
|
|
fail_compilation/cconst1.c(106): Error: cannot modify `const` expression `j`
|
|
---
|
|
*/
|
|
|
|
#line 100
|
|
|
|
void test100()
|
|
{
|
|
const int i;
|
|
++i;
|
|
int const j;
|
|
++j;
|
|
int *const p;
|
|
++p;
|
|
int *const x, y;
|
|
++y; // this should pass
|
|
}
|