blob: 729dc4599de96c2e8d4625ef600483c9b2706a3d [file] [log] [blame]
NAKAMURA Takumi02b37742011-03-09 12:00:19 +00001// RUN: %clang_cc1 %s -fsyntax-only -verify -triple=i686-mingw32
2// RUN: %clang_cc1 %s -fsyntax-only -verify -triple=x86_64-mingw32
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00003// expected-no-diagnostics
NAKAMURA Takumi02b37742011-03-09 12:00:19 +00004
5// mingw-w64's intrin.h has decls below.
6// we should accept them.
7extern unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char);
8extern unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short);
9extern unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int);
Benjamin Kramerd6bbc982012-08-17 16:39:13 +000010
11// GCC documents these as unsigned, but they are defined with a signed argument.
12extern int __builtin_ffs(int);
13extern int __builtin_ffsl(long);
14extern int __builtin_ffsll(long long);