Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | // RUN: %llvmgxx %s -S -o /dev/null |
| 2 | |
| 3 | // PR397 |
| 4 | |
| 5 | struct stat { }; |
| 6 | struct stat64 { }; |
| 7 | |
| 8 | extern "C" { |
| 9 | |
| 10 | extern int lstat(const char *, struct stat *) __asm__("lstat64"); |
| 11 | extern int lstat64(const char *, struct stat64 *); |
| 12 | |
| 13 | extern int __lxstat(int, const char *, struct stat *) __asm__("__lxstat64"); |
| 14 | extern int __lxstat64(int, const char *, struct stat64 *); |
| 15 | |
| 16 | extern __inline__ int lstat(const char *path, struct stat *statbuf) { |
| 17 | return __lxstat(3, path, statbuf); |
| 18 | } |
| 19 | extern __inline__ int lstat64(const char *path, struct stat64 *statbuf) { |
| 20 | return __lxstat64(3, path, statbuf); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | int do_one_file(void) { |
| 25 | return lstat(0, 0) + lstat64(0,0); |
| 26 | } |