[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / Transforms / InferFunctionAttrs / readonly_and_writeonly.ll
blobc1a5f11cf94ab83ec74e77c3507c028285a52fbd
1 ; RUN: opt < %s -mtriple=x86_64-- -passes=inferattrs -S | FileCheck --match-full-lines %s
3 ; Frontends can emit math functions with 'readonly', don't crash on it.
5 ; CHECK: declare double @acos(double) [[NOFREE_NOUNWIND_WILLRETURN_READNONE:#[0-9]+]]
6 declare double @acos(double) readonly
8 ; CHECK-DAG: attributes [[NOFREE_NOUNWIND_WILLRETURN_READNONE]] = { mustprogress nofree nosync nounwind willreturn memory(none) }