builtins-decl.c revision d6bbc98fe4690f31904f306c61090404843466fe
1// RUN: %clang_cc1 %s -fsyntax-only -verify -triple=i686-mingw32 2// RUN: %clang_cc1 %s -fsyntax-only -verify -triple=x86_64-mingw32 3 4// mingw-w64's intrin.h has decls below. 5// we should accept them. 6extern unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char); 7extern unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short); 8extern unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int); 9 10// GCC documents these as unsigned, but they are defined with a signed argument. 11extern int __builtin_ffs(int); 12extern int __builtin_ffsl(long); 13extern int __builtin_ffsll(long long); 14