projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gettimeofday: port recent C++ fix to Emacs
[gnulib.git]
/
tests
/
test-stdnoreturn.c
diff --git
a/tests/test-stdnoreturn.c
b/tests/test-stdnoreturn.c
index
fed5e54
..
7bc0207
100644
(file)
--- a/
tests/test-stdnoreturn.c
+++ b/
tests/test-stdnoreturn.c
@@
-1,5
+1,5
@@
-/* Test of <stdnoreturn.h>
and _Noreturn
.
- Copyright 201
1
Free Software Foundation, Inc.
+/* Test of <stdnoreturn.h>.
+ Copyright 201
2-2013
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
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
@@
-14,34
+14,22
@@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
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 Paul Eggert
*/
+/*
Written by Paul Eggert.
*/
#include <config.h>
#include <stdnoreturn.h>
#include <config.h>
#include <stdnoreturn.h>
-/* But did he ever return? No he never returned,
- And his fate is still unlearned ... */
-static noreturn void MTA (void);
+#include <stdlib.h>
-
static _N
oreturn void
-
Charlie
(void)
+
n
oreturn void
+
does_not_return
(void)
{
{
- MTA ();
-}
-
-static void
-MTA (void)
-{
- Charlie ();
+ exit (0);
}
int
}
int
-main (
int argc, char **argv
)
+main (
void
)
{
{
- if (argc <= 0)
- MTA ();
- if (!argv[0][0])
- Charlie ();
- return 0;
+ does_not_return ();
}
}