xref: /llvm-project/clang/test/CodeGen/safestack-attr.cpp (revision c4122c17b473a6f9f2a5940a98939209aaaa3dfc)
1*c4122c17SPeter Collingbourne // RUN: %clang_cc1 -triple x86_64-linux-unknown -emit-llvm -o - %s -fsanitize=safe-stack | FileCheck -check-prefix=SP %s
2*c4122c17SPeter Collingbourne 
3*c4122c17SPeter Collingbourne __attribute__((no_sanitize("safe-stack")))
foo(int * a)4*c4122c17SPeter Collingbourne int foo(int *a) {  return *a; }
5*c4122c17SPeter Collingbourne 
6*c4122c17SPeter Collingbourne // SP-NOT: attributes #{{.*}} = { {{.*}}safestack{{.*}} }
7