File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 22// RUN: FileCheck --input-file=%t.cir --check-prefix=CIR %s
33// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t.ll
44// RUN: FileCheck --input-file=%t.ll --check-prefix=LLVM %s
5- // XFAIL: *
65
76[[gnu::pure]] int pure_func (int x);
87[[gnu::const ]] int const_func (int x);
@@ -22,5 +21,5 @@ int test(int x) {
2221// LLVM: %{{.+}} = call i32 @_Z9pure_funci(i32 %{{.+}}) #[[#meta_pure:]]
2322// LLVM: %{{.+}} = call i32 @_Z10const_funci(i32 %{{.+}}) #[[#meta_const:]]
2423// LLVM: }
25- // LLVM: attributes #[[#meta_pure]] = { nounwind willreturn memory(read) }
24+ // LLVM: attributes #[[#meta_pure]] = { nounwind willreturn memory(read, errnomem: none ) }
2625// LLVM: attributes #[[#meta_const]] = { nounwind willreturn memory(none) }
You can’t perform that action at this time.
0 commit comments