OSDN Git Service

2010-03-31 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr31254.c
1 /* { dg-do compile } */
2
3 struct timespec
4 {
5   long tv_sec;
6   long tv_nsec;
7 };
8 struct inode
9 {
10   struct timespec i_atime;
11   struct timespec i_mtime;
12 };
13 struct afs_vnode
14 {
15   struct inode vfs_inode;
16 };
17 static inline
18   struct inode *AFS_VNODE_TO_I (struct afs_vnode *vnode)
19 {
20   return &vnode->vfs_inode;
21 };
22 afs_inode_map_status (struct afs_vnode *vnode)
23 {
24   struct inode *inode = AFS_VNODE_TO_I (vnode);
25   inode->i_atime = inode->i_mtime;
26 }