File: test_C_19.c

package info (click to toggle)
ccmalloc 0.2.3-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 480 kB
  • ctags: 485
  • sloc: ansic: 4,523; sh: 204; makefile: 116; cpp: 86
file content (22 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Test the new `read-dynlib-with-gdb' flag
 */

#include <string.h>
#include <stdlib.h>

extern void oops();

int main()
{
  char * a;

  a = malloc(13);
  free(a);
  a = strdup("oops");		/* if libc is compiled with `-g' this
  			         * should give you the strdup symbol 
				 */
  oops();

  exit(0);
  return 0;
}