1// RUN: %check_clang_tidy %s hicpp-no-assembler %t
2
3__asm__(".symver foo, bar@v");
4// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: do not use inline assembler in safety-critical code [hicpp-no-assembler]
5
6static int s asm("spam");
7// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: do not use inline assembler in safety-critical code [hicpp-no-assembler]
8
9void f() {
10 __asm("mov al, 2");
11 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not use inline assembler in safety-critical code [hicpp-no-assembler]
12}
13

source code of clang-tools-extra/test/clang-tidy/checkers/hicpp/no-assembler.cpp