Importing _Builtin_intrinsics.sse and avx would transitively pull in those headers, and the test would fail when building in an environment where they were not available on the include path. This fixes PR20995 for me. Differential Revision: http://reviews.llvm.org/D7112 llvm-svn: 226754
13 lines
438 B
Objective-C
13 lines
438 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -I%S/Inputs/System/usr/include -Xclang -verify
|
|
// RUN: %clang -fsyntax-only -std=c99 -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -I%S/Inputs/System/usr/include -Xclang -verify
|
|
// expected-no-diagnostics
|
|
|
|
#ifdef __SSE__
|
|
@import _Builtin_intrinsics.intel.sse;
|
|
#endif
|
|
|
|
#ifdef __AVX2__
|
|
@import _Builtin_intrinsics.intel.avx2;
|
|
#endif
|