llvm-mirror/test/Assembler/invalid-safestack-return.ll
Peter Collingbourne cb037f41a1 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
2015-06-15 22:16:51 +00:00

5 lines
141 B
LLVM

; RUN: not llvm-as -o /dev/null %s 2>&1 | FileCheck %s
; CHECK: error: invalid use of function-only attribute
declare safestack void @foo()