aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/InferFunctionAttrs/readonly_and_writeonly.ll
blob: 895ae2069fcaac4329d366cddb666e5f0db33426 (plain)
1
2
3
4
5
6
7
8
; RUN: opt < %s -mtriple=x86_64-- -passes=inferattrs -S | FileCheck --match-full-lines %s

; Frontends can emit math functions with 'readonly', don't crash on it.

; CHECK: declare double @acos(double) [[NOFREE_NOUNWIND_WILLRETURN_READNONE:#[0-9]+]]
declare double @acos(double) readonly

; CHECK-DAG: attributes [[NOFREE_NOUNWIND_WILLRETURN_READNONE]] = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) }