mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-04 16:41:43 +00:00

stdlib.h. There were numerous problems with forward declaring 'malloc' and 'free', but the most important is that these are reserved by POSIX and may be implemented via a function-like macro. As suggested by Dale Johannesen, I'm instead guarding the only include of this in our builtin headers with __STDC_HOSTED__, and I've removed the include of the header from the test suite. I'll discuss with folks whether we want to have a hosted section of the test suite or not, and add it (and perhaps other tests) back there if that's the direction. llvm-svn: 119958
16 lines
394 B
C
16 lines
394 B
C
// RUN: %clang -fsyntax-only -ffreestanding %s
|
|
// RUN: %clang -fsyntax-only -ffreestanding -fno-lax-vector-conversions %s
|
|
// RUN: %clangxx -fsyntax-only -ffreestanding -x c++ %s
|
|
|
|
#if defined(i386) || defined(__x86_64__)
|
|
|
|
#ifdef __SSE4_2__
|
|
// nmmintrin forwards to smmintrin.
|
|
#include <nmmintrin.h>
|
|
#endif
|
|
|
|
// immintrin includes all other intel intrinsic headers.
|
|
#include <immintrin.h>
|
|
|
|
#endif
|