PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20030307-1.c
blob3f4eb864d6c277725f76057436fed6878056e666
1 /* PR optimization/8726 */
2 /* Originator: Paul Eggert <eggert@twinsun.com> */
4 /* Verify that GCC doesn't miscompile tail calls on Sparc. */
6 extern void abort(void);
8 int fcntl_lock(int fd, int op, long long offset, long long count, int type);
10 int vfswrap_lock(char *fsp, int fd, int op, long long offset, long long count, int type)
12 return fcntl_lock(fd, op, offset, count, type);
15 int fcntl_lock(int fd, int op, long long offset, long long count, int type)
17 return type;
20 int main(void)
22 if (vfswrap_lock (0, 1, 2, 3, 4, 5) != 5)
23 abort();
25 return 0;