blob: a973152b2781f8b8f25dad7c5d8d94ddca20c1de [file] [log] [blame]
Stephen Hinesc568f1e2014-07-21 00:47:37 -07001// REQUIRES: x86-registered-target
2// RUN: %clang_cc1 -triple i386-mingw32 -fsyntax-only -verify -fms-extensions %s
3// expected-no-diagnostics
4
5void __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}