view clang/test/CodeGenObjC/attr-speculative-load-hardening.m @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children c4bab56944e8
line wrap: on
line source

// RUN: %clang -emit-llvm %s -o - -S | FileCheck %s -check-prefix=SLH

int main() __attribute__((speculative_load_hardening)) {
  return 0;
}

int test() __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{{.*}} }