From 58af6d1594778173f757131bdc25f850e00c7420 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 15 Jun 2015 22:16:51 +0000 Subject: Add safestack attribute to LLVMAttribute enum and Go bindings. Correct constants in commented-out part of LLVMAttribute enum. Add tests that verify that the safestack attribute is only allowed as a function attribute. llvm-svn: 239772 --- llvm/test/Assembler/invalid-safestack-return.ll | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 llvm/test/Assembler/invalid-safestack-return.ll (limited to 'llvm/test/Assembler/invalid-safestack-return.ll') diff --git a/llvm/test/Assembler/invalid-safestack-return.ll b/llvm/test/Assembler/invalid-safestack-return.ll new file mode 100644 index 00000000000..605e72e84c8 --- /dev/null +++ b/llvm/test/Assembler/invalid-safestack-return.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as -o /dev/null %s 2>&1 | FileCheck %s + +; CHECK: error: invalid use of function-only attribute +declare safestack void @foo() -- cgit v1.2.3