Skip to content

Commit f4226ce

Browse files
committed
Fix tests. We need to make the decoy function opaque since we now allow a function which just returns nullptr.
1 parent 3ab8356 commit f4226ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/test/Analysis/Checkers/WebKit/call-args-checked-ptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace null_ptr {
117117

118118
namespace ref_counted_lookalike {
119119
struct Decoy {
120-
CheckedObj* get() { return nullptr; }
120+
CheckedObj* get();
121121
};
122122

123123
void foo() {

clang/test/Analysis/Checkers/WebKit/call-args.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace null_ptr {
117117

118118
namespace ref_counted_lookalike {
119119
struct Decoy {
120-
RefCountable* get() { return nullptr; }
120+
RefCountable* get();
121121
};
122122

123123
void foo() {

0 commit comments

Comments
 (0)