summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-safestack-param.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/invalid-safestack-param.ll')
-rw-r--r--llvm/test/Assembler/invalid-safestack-param.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-safestack-param.ll b/llvm/test/Assembler/invalid-safestack-param.ll
new file mode 100644
index 00000000000..b9046c4c33b
--- /dev/null
+++ b/llvm/test/Assembler/invalid-safestack-param.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 void @foo(i32 safestack %x)
OpenPOWER on IntegriCloud