Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 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 | } |