aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/991213-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/991213-2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/991213-2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/991213-2.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/991213-2.c
new file mode 100644
index 000000000..98385d562
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/991213-2.c
@@ -0,0 +1,15 @@
+typedef long __kernel_time_t;
+typedef __kernel_time_t time_t;
+time2(
+ void (* const (funcp)(time_t)),
+ const long offset, int * const okayp)
+{
+ register int bits;
+ time_t t;
+ for (bits = 0, t = 1; t > 0; ++bits, t <<= 1)
+ ;
+ t = (t < 0) ? 0 : ((time_t) 1 << bits);
+ for ( ; ; ) {
+ (*funcp)((time_t)&t);
+ }
+}