Added 'C_C++/does_freeing_a_const_char_pointer_warn_or_is_it_a_footgun_under_gcc.c'
This commit is contained in:
parent
9d1c73fae0
commit
4be7f93e30
@ -0,0 +1,11 @@
|
||||
// @BAKE gcc $@
|
||||
#include <stdlib.h>
|
||||
|
||||
void test(const char * i) {
|
||||
free(i);
|
||||
}
|
||||
|
||||
signed main() {
|
||||
free("test");
|
||||
test("test");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user