Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGenObjC/attr-speculative-load-hardening.m @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang -emit-llvm %s -o - -S | FileCheck %s -check-prefix=SLH int main(void) __attribute__((speculative_load_hardening)) { return 0; } int test(void) __attribute__((no_speculative_load_hardening)) { return 0; } // SLH: @{{.*}}main{{.*}}[[SLH:#[0-9]+]] // SLH: @{{.*}}test{{.*}}[[NOSLH:#[0-9]+]] // SLH: attributes [[SLH]] = { {{.*}}speculative_load_hardening{{.*}} } // SLH-NOT: attributes [[NOSLH]] = { {{.*}}speculative_load_hardening{{.*}} }