summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/malloc.c
blob: 0e936b36da414f45f6f912ff7c289d67a059243a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2009 by
 * Ralf Corsépius, Ulm, Germany. All rights reserved.
 *
 * Permission to use, copy, modify, and distribute this software
 * is freely granted, provided that this notice is preserved.
 */

#include <stdlib.h>

int
main (void)
{
  void *ptr = malloc (42);

  return (ptr != NULL);
}