[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / safestack-attr.cpp
blob9d1ed0d2e4938b5e039e416e027d76c4359c3aa9
1 // RUN: %clang_cc1 -triple x86_64-linux-unknown -emit-llvm -o - %s -fsanitize=safe-stack | FileCheck -check-prefix=SP %s
3 __attribute__((no_sanitize("safe-stack")))
4 int foo(int *a) { return *a; }
6 // SP-NOT: attributes #{{.*}} = { {{.*}}safestack{{.*}} }