Files
clang-p2996/llvm/test/Transforms/InferFunctionAttrs/nobuiltin.ll
Paul Robinson 3b5e104b22 Verify inferattrs doesn't infer unexpected attributes
Add --match-full-lines or `{{$}}` to ensure that no unexpected
attributes appear at the ends of lines.  Account for the cases
where attributes were in fact appearing.

Differential Revision: https://reviews.llvm.org/D110720
2021-12-10 07:54:35 -08:00

6 lines
180 B
LLVM

; RUN: opt -S -inferattrs < %s | FileCheck %s
; CHECK: Function Attrs: nobuiltin allocsize(0){{$}}
; CHECK: declare i8* @_Znwm(i32)
declare i8* @_Znwm(i32) nobuiltin allocsize(0)