diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/memcheck/t3.c')
-rwxr-xr-x | gcc/testsuite/gcc.c-torture/execute/memcheck/t3.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/memcheck/t3.c b/gcc/testsuite/gcc.c-torture/execute/memcheck/t3.c new file mode 100755 index 0000000..5b6333d --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/memcheck/t3.c @@ -0,0 +1,25 @@ +/* Must define: + int expect_error; + void test (); + void setup () NOCHECK; */ + +#include "driver.h" + +int expect_error = 0; + +int *ip; + +void test () +{ + ip = c_malloc (sizeof (int)); + t2 (ip); +} + +int t2 (int *ip) +{ +} + +void setup () /* NOCHECK */ +{ + mark_region (&ip, sizeof (ip), ACCESS_RW); +} |