~ubuntu-branches/ubuntu/saucy/augeas/saucy

« back to all changes in this revision

Viewing changes to gnulib/tests/test-malloc-gnu.c

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2011-06-09 10:25:27 UTC
  • mfrom: (1.4.1 upstream) (19.1.7 natty)
  • Revision ID: james.westby@ubuntu.com-20110609102527-8l29k1tv6bwnqujq
Tags: 0.8.1-1
* new upstream release
* pull packaging from Ubuntu - new binary package augeas-docs
* change build dependency on naturaldocs to version in Debian
* remove debian/patches/*, no longer needed
* update standards version - no changes
* update libaugeas0 short description to not start with an article
* update debian/libaugeas0.symbols to match upstream changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Test of malloc function.
 
2
   Copyright (C) 2010-2011 Free Software Foundation, Inc.
 
3
 
 
4
   This program is free software: you can redistribute it and/or modify
 
5
   it under the terms of the GNU General Public License as published by
 
6
   the Free Software Foundation; either version 3 of the License, or
 
7
   (at your option) any later version.
 
8
 
 
9
   This program is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
   GNU General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License
 
15
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
16
 
 
17
#include <config.h>
 
18
 
 
19
#include <stdlib.h>
 
20
 
 
21
int
 
22
main ()
 
23
{
 
24
  /* Check that malloc (0) is not a NULL pointer.  */
 
25
  if (malloc (0) == NULL)
 
26
    return 1;
 
27
 
 
28
  return 0;
 
29
}