Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git] / test / FrontendC++ / 2004-11-27-InlineAsmFunctionRedefinition.cpp
blob42b223bc99cc1ec1a78af4dd74261301ebdd1b9a
1 // RUN: %llvmgxx %s -S -o /dev/null
3 // PR397
5 struct stat { };
6 struct stat64 { };
8 extern "C" {
10 extern int lstat(const char *, struct stat *) __asm__("lstat64");
11 extern int lstat64(const char *, struct stat64 *);
13 extern int __lxstat(int, const char *, struct stat *) __asm__("__lxstat64");
14 extern int __lxstat64(int, const char *, struct stat64 *);
16 extern __inline__ int lstat(const char *path, struct stat *statbuf) {
17 return __lxstat(3, path, statbuf);
19 extern __inline__ int lstat64(const char *path, struct stat64 *statbuf) {
20 return __lxstat64(3, path, statbuf);
24 int do_one_file(void) {
25 return lstat(0, 0) + lstat64(0,0);