summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-safestack-return.ll
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-06-15 22:16:51 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-06-15 22:16:51 +0000
commit58af6d1594778173f757131bdc25f850e00c7420 (patch)
tree773688f5bebc8273170d7831d24aa314dc5d8f58 /llvm/test/Assembler/invalid-safestack-return.ll
parent1b66f5dc82a82ab0a3c0ea837bafc7a00e792b32 (diff)
downloadbcm5719-llvm-58af6d1594778173f757131bdc25f850e00c7420.tar.gz
bcm5719-llvm-58af6d1594778173f757131bdc25f850e00c7420.zip
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
Diffstat (limited to 'llvm/test/Assembler/invalid-safestack-return.ll')
-rw-r--r--llvm/test/Assembler/invalid-safestack-return.ll4
1 files changed, 4 insertions, 0 deletions
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()
OpenPOWER on IntegriCloud