gcc/testsuite/gdc.dg/asan/gdc272.d
raw| 1 | /* { dg-options "-fsanitize=address" } */ |
| 2 | /* { dg-do compile } */ |
| 3 | |
| 4 | module asantests; |
| 5 | |
| 6 | |
| 7 | /******************************************/ |
| 8 | // https://bugzilla.gdcproject.org/show_bug.cgi?id=272 |
| 9 | |
| 10 | extern(C) void my_memcmp(const(void) *s1, const(void) *s2); |
| 11 | |
| 12 | void bug(const(char)* p) |
| 13 | { |
| 14 | my_memcmp(p, "__FILE__".ptr); |
| 15 | } |