Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions clang/test/CIR/CodeGen/call-side-effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: FileCheck --input-file=%t.cir --check-prefix=CIR %s
// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t.ll
// RUN: FileCheck --input-file=%t.ll --check-prefix=LLVM %s
// XFAIL: *

[[gnu::pure]] int pure_func(int x);
[[gnu::const]] int const_func(int x);
Expand All @@ -22,5 +21,5 @@ int test(int x) {
// LLVM: %{{.+}} = call i32 @_Z9pure_funci(i32 %{{.+}}) #[[#meta_pure:]]
// LLVM: %{{.+}} = call i32 @_Z10const_funci(i32 %{{.+}}) #[[#meta_const:]]
// LLVM: }
// LLVM: attributes #[[#meta_pure]] = { nounwind willreturn memory(read) }
// LLVM: attributes #[[#meta_pure]] = { nounwind willreturn memory(read, errnomem: none) }
// LLVM: attributes #[[#meta_const]] = { nounwind willreturn memory(none) }
Loading