mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
269 B
C
15 lines
269 B
C
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fix22265.c(104): Error: cannot modify `const` expression `*buf`
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=22265
|
|
|
|
#line 100
|
|
|
|
void test(const char *buf, char *const p)
|
|
{
|
|
char a = *buf++;
|
|
*buf = 'a'; // 104
|
|
}
|