Commit 088612b2 authored by Bruno Haible's avatar Bruno Haible

Tests for module '_Exit'.

parent 5518d301
2010-07-12 Bruno Haible <bruno@clisp.org> 2010-07-12 Bruno Haible <bruno@clisp.org>
Tests for module '_Exit'.
* modules/_Exit-tests: New file.
* tests/test-_Exit.sh: New file.
* tests/test-_Exit.c: New file.
New module '_Exit'. New module '_Exit'.
* lib/stdlib.in.h (__attribute__): New macro. * lib/stdlib.in.h (__attribute__): New macro.
(_Exit): New declaration. (_Exit): New declaration.
Files:
tests/test-_Exit.sh
tests/test-_Exit.c
Depends-on:
configure.ac:
Makefile.am:
TESTS += test-_Exit.sh
check_PROGRAMS += test-_Exit
/* Test of terminating the current process.
Copyright (C) 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* Written by Bruno Haible <bruno@clisp.org>, 2010. */
#include <config.h>
#include <stdlib.h>
int
main ()
{
_Exit (81);
}
#!/bin/sh
./test-_Exit${EXEEXT}
test $? = 81
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment