6 lines · cpp
1// RUN: %clang_cc1 -mspeculative-load-hardening -fsyntax-only -verify %s2 3void f() {4 __asm goto("movl %ecx, %edx"); // expected-warning {{speculative load hardening does not protect functions with asm goto}}5}6 1// RUN: %clang_cc1 -mspeculative-load-hardening -fsyntax-only -verify %s2 3void f() {4 __asm goto("movl %ecx, %edx"); // expected-warning {{speculative load hardening does not protect functions with asm goto}}5}6