1
; RUN: opt < %s -functionattrs -S | FileCheck %s
5
define void @test_opt(i8* %p) {
6
; CHECK-LABEL: @test_opt
7
; CHECK: (i8* nocapture readnone %p) #0 {
11
define void @test_optnone(i8* %p) noinline optnone {
12
; CHECK-LABEL: @test_optnone
13
; CHECK: (i8* %p) #1 {
17
declare i8 @strlen(i8*) noinline optnone
18
; CHECK-LABEL: @strlen
21
; CHECK-LABEL: attributes #0
22
; CHECK: = { readnone }
23
; CHECK-LABEL: attributes #1
24
; CHECK: = { noinline optnone }