repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Parser
/
MicrosoftExtensionsInlineAsm.c
blob
a973152b2781f8b8f25dad7c5d8d94ddca20c1de
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
}