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 | |
6 | static int s asm("spam" ); |
7 | // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: do not use inline assembler in safety-critical code [hicpp-no-assembler] |
8 | |
9 | void 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 | |