Ehsan Akhgari | 7e36a19 | 2014-07-06 18:45:44 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-registered-target |
Aaron Ballman | f21ba37 | 2014-07-06 19:44:38 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple i386-mingw32 -fsyntax-only -verify -fms-extensions %s |
Ehsan Akhgari | 7e36a19 | 2014-07-06 18:45:44 +0000 | [diff] [blame] | 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 | } |