diff options
Diffstat (limited to 'libdimension/tests/warning.c')
-rw-r--r-- | libdimension/tests/warning.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdimension/tests/warning.c b/libdimension/tests/warning.c index aecedd5..4e5dd75 100644 --- a/libdimension/tests/warning.c +++ b/libdimension/tests/warning.c @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> * + * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> * * * * This file is part of The Dimension Test Suite. * * * @@ -21,10 +21,12 @@ #include "dimension.h" #include <stdlib.h> +#include <errno.h> int main(void) { + errno = ENOMEM; dmnsn_warning("This warning is expected."); return EXIT_SUCCESS; } |