Skip to content

Commit

Permalink
[test/Cilk] Fix tests to accommodate different constructor ABIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Sep 2, 2023
1 parent 2844c5c commit aa4f4c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clang/test/Cilk/hyper-new-final.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ template<typename Char>
int testfn(int argc, char *argv[]) {
// Should call derived::derived(const base &)
// CHECK: ptr @_Znwm
// CHECK: void @_ZN7derivedIcEC1ERK4baseIcE
// CHECK: {{void|ptr}} @_ZN7derivedIcEC1ERK4baseIcE
reducer<char> *r = new reducer<char>(var);
// Should lookup view
// CHECK: @llvm.hyper.lookup
// CHECK: call void @_Z3useR7derivedIcEPKc
use(*r, "Hello\n");
// CHECK-LABEL: delete.notnull
// The destructor should be called directly as derived::~derived.
// CHECK: call void @_ZN7derivedIcED1Ev
// CHECK: call {{void|.*ptr}} @_ZN7derivedIcED1Ev
// CHECK: call void @_ZdlPv
delete r;
return 0;
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Cilk/hyper-new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ template<typename Char>
int testfn(int argc, char *argv[]) {
// Should call derived::derived(const base &)
// CHECK: ptr @_Znwm
// CHECK: void @_ZN7derivedIcEC1ERK4baseIcE
// CHECK: {{void|ptr}} @_ZN7derivedIcEC1ERK4baseIcE
reducer<char> *r = new reducer<char>(var);
// Should lookup view
// CHECK: @llvm.hyper.lookup
Expand Down

0 comments on commit aa4f4c0

Please sign in to comment.