llvm-for-llvmta/tools/clang/test/Parser/slh-asm-goto.cpp

6 lines
212 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -mspeculative-load-hardening -fsyntax-only -verify %s
void f() {
__asm goto("movl %ecx, %edx"); // expected-warning {{Speculative load hardening does not protect functions with asm goto}}
}