llvm-capstone/clang/test/Preprocessor/pragma_microsoft.cpp
Stephen Long 3946de0456 [MSVC] Add support for pragma function
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
2022-05-13 06:39:47 -07:00

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
}