1 /* PR optimization/8726 */ 2 /* Originator: Paul Eggert <eggert@twinsun.com> */ 3 4 /* Verify that GCC doesn't miscompile tail calls on Sparc. */ 5 6 extern void abort(void); 7 8 int fcntl_lock(int fd, int op, long long offset, long long count, int type); 9 10 int vfswrap_lock(char *fsp, int fd, int op, long long offset, long long count, int type) 11 { 12 return fcntl_lock(fd, op, offset, count, type); 13 } 14 15 int fcntl_lock(int fd, int op, long long offset, long long count, int type) 16 { 17 return type; 18 } 19 20 int main(void) 21 { 22 if (vfswrap_lock (0, 1, 2, 3, 4, 5) != 5) 23 abort(); 24 25 return 0; 26 } 27