aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr31254.c
blob: cec301273e5b6a42a453ba1f6dd136dc7fc24419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do compile } */

struct timespec
{
  long tv_sec;
  long tv_nsec;
};
struct inode
{
  struct timespec i_atime;
  struct timespec i_mtime;
};
struct afs_vnode
{
  struct inode vfs_inode;
};
static inline
  struct inode *AFS_VNODE_TO_I (struct afs_vnode *vnode)
{
  return &vnode->vfs_inode;
};
afs_inode_map_status (struct afs_vnode *vnode)
{
  struct inode *inode = AFS_VNODE_TO_I (vnode);
  inode->i_atime = inode->i_mtime;
}