xref: /llvm-project/clang/test/Parser/slh-asm-goto.cpp (revision 6b89e897e7dc73dc6a112b18920deb8282aaca97)
1 // RUN: %clang_cc1 -mspeculative-load-hardening -fsyntax-only -verify %s
2 
f()3 void f() {
4   __asm goto("movl %ecx, %edx"); // expected-warning {{speculative load hardening does not protect functions with asm goto}}
5 }
6