Windows library: Add intrinsics __noop and __nop (#1119)
This commit is contained in:
parent
166e4cafcd
commit
65c85cbb53
|
@ -4827,6 +4827,16 @@ HFONT CreateFont(
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<!-- Intrinsic __noop https://docs.microsoft.com/en-us/cpp/intrinsics/noop -->
|
||||||
|
<function name="__noop">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<leak-ignore/>
|
||||||
|
<arg nr="any"/>
|
||||||
|
</function>
|
||||||
|
<!-- Intrinsic void __nop(); https://docs.microsoft.com/en-us/cpp/intrinsics/nop -->
|
||||||
|
<function name="__nop">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
</function>
|
||||||
<podtype name="LARGE_INTEGER" sign="s" size="8"/>
|
<podtype name="LARGE_INTEGER" sign="s" size="8"/>
|
||||||
<podtype name="POINTER_SIGNED" sign="s"/>
|
<podtype name="POINTER_SIGNED" sign="s"/>
|
||||||
<podtype name="POINTER_UNSIGNED" sign="u"/>
|
<podtype name="POINTER_UNSIGNED" sign="u"/>
|
||||||
|
|
|
@ -146,6 +146,11 @@ void validCode()
|
||||||
SecureZeroMemory(byteBuf, sizeof(byteBuf));
|
SecureZeroMemory(byteBuf, sizeof(byteBuf));
|
||||||
RtlFillMemory(byteBuf, sizeof(byteBuf), 0xff);
|
RtlFillMemory(byteBuf, sizeof(byteBuf), 0xff);
|
||||||
|
|
||||||
|
// Intrinsics
|
||||||
|
__noop();
|
||||||
|
__noop(1, "test", NULL);
|
||||||
|
__nop();
|
||||||
|
|
||||||
// Valid Library usage, no leaks, valid arguments
|
// Valid Library usage, no leaks, valid arguments
|
||||||
HINSTANCE hInstLib = LoadLibrary(L"My.dll");
|
HINSTANCE hInstLib = LoadLibrary(L"My.dll");
|
||||||
FreeLibrary(hInstLib);
|
FreeLibrary(hInstLib);
|
||||||
|
|
Loading…
Reference in New Issue