| 1 |
// RUN: %clang_cc1 -fsyntax-only -ffreestanding %s -verify |
| 2 |
// RUN: %clang_cc1 -fsyntax-only -D_CLANG_DISABLE_CRT_DEPRECATION_WARNINGS -ffreestanding %s -verify |
| 3 |
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -x c++ %s -verify |
| 4 |
|
| 5 |
#if defined(i386) || defined(__x86_64__) |
| 6 |
#ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS |
| 7 |
// [email protected]:*{{The <mm3dnow.h> header is deprecated}} |
| 8 |
#else |
| 9 |
// expected-no-diagnostics |
| 10 |
#endif |
| 11 |
|
| 12 |
#include <mm3dnow.h> |
| 13 |
|
| 14 |
int foo(void *x) { |
| 15 |
_m_prefetch(x); |
| 16 |
_m_prefetchw(x); |
| 17 |
return 4; |
| 18 |
} |
| 19 |
#else |
| 20 |
// expected-no-diagnostics |
| 21 |
#endif |