Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
safecode
/
test
/
core
/
free-004.c
blob: 60e1f0e30e1c2e38691ad649350eea213780aa99 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
//
// TEST: free-004
//
// Description:
// Test invalid memory deallocations
//
#include
<stdio.h>
#include
<stdlib.h>
int
main
(
int
argc
,
char
**
argv
)
{
char
array
[
1024
];
free
(&(
array
[
5
]));
return
0
;
}