mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-13 17:37:00 +00:00

MSVC pragma function tells the compiler to generate calls to functions in the pragma function list, instead of using the builtin. Needs https://reviews.llvm.org/D124701 https://docs.microsoft.com/en-us/cpp/preprocessor/function-c-cpp?view=msvc-170 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D124702
8 lines
211 B
C++
8 lines
211 B
C++
// RUN: %clang_cc1 %s -fsyntax-only -std=c++11 -verify -fms-extensions
|
|
|
|
#pragma warning(push, 4_D) // expected-warning {{requires a level between 0 and 4}}
|
|
|
|
extern "C" {
|
|
#pragma function(memset) // no-warning
|
|
}
|