Debian Codegraph @

clang/test/Parser/MicrosoftExtensionsInlineAsm.c

raw
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple i386-mingw32 -fsyntax-only -verify -fms-extensions %s
3 // expected-no-diagnostics
4
5 void __forceinline InterlockedBitTestAndSet (long *Base, long Bit)
6 {
7 __asm {
8 mov eax, Bit
9 mov ecx, Base
10 lock bts [ecx], eax
11 setc al
12 };
13 }