llvm-project/clang-tools-extra/test/clang-tidy/hicpp-no-assembler-msvc.cpp

10 lines
242 B
C++

// REQUIRES: system-windows
// RUN: %check_clang_tidy %s hicpp-no-assembler %t
void f() {
_asm {
mov al, 2;
// CHECK-MESSAGES: :[[@LINE-2]]:3: warning: do not use inline assembler in safety-critical code [hicpp-no-assembler]
}
}