[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Headers / mm3dnow.c
bloba9b6dd88f8034afd2c67f9653006715a35f3c54a
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
5 #if defined(i386) || defined(__x86_64__)
6 #ifndef _CLANG_DISABLE_CRT_DEPRECATION_WARNINGS
7 // expected-warning@mm3dnow.h:*{{The <mm3dnow.h> header is deprecated}}
8 #else
9 // expected-no-diagnostics
10 #endif
12 #include <mm3dnow.h>
14 int foo(void *x) {
15 _m_prefetch(x);
16 _m_prefetchw(x);
17 return 4;
19 #else
20 // expected-no-diagnostics
21 #endif