[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Headers / mm3dnow.c
blob255483cb9b836451320ddcd9ecd7da144ab6af4e
1 // RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify
2 // RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify
3 // expected-no-diagnostics
5 #if defined(i386) || defined(__x86_64__)
6 #include <mm3dnow.h>
8 int __attribute__((__target__(("3dnow")))) foo(int a) {
9 _m_femms();
10 return 4;
13 __m64 __attribute__((__target__(("3dnowa")))) bar(__m64 a) {
14 return _m_pf2iw(a);
16 #endif