Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/torture/pr31254.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 void | |
23 afs_inode_map_status (struct afs_vnode *vnode) | |
24 { | |
25 struct inode *inode = AFS_VNODE_TO_I (vnode); | |
26 inode->i_atime = inode->i_mtime; | |
27 } |