maint: fts: move decl of `dp' down into while loop; split a long line
[gnulib.git] / tests / test-sched.c
index 77b2937..8d0c8cd 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of <sched.h> substitute.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008-2011 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
@@ -23,6 +23,9 @@
 /* Check that 'struct sched_param' is defined.  */
 static struct sched_param a;
 
+/* Check that the SCHED_* macros are defined and compile-time constants.  */
+int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
+
 static int f1;
 
 int