File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 66#pragma clang system_header
77
88class Arena ;
9- class MessageLite ;
9+ class MessageLite {
10+ int SomeArbitraryField;
11+ };
1012
1113// Originally declared in generated_message_util.h
1214MessageLite *GetOwnedMessageInternal (Arena *, MessageLite *, Arena *);
Original file line number Diff line number Diff line change 1313// RUN: unix.DynamicMemoryModeling:AddNoOwnershipChangeNotes=true
1414
1515#include " Inputs/system-header-simulator-for-malloc.h"
16+ // For the tests in namespace protobuf_leak:
17+ #include " Inputs/system-header-simulator-for-protobuf.h"
1618
1719// ===----------------------------------------------------------------------===//
1820// Report for which we expect NoOwnershipChangeVisitor to add a new note.
@@ -223,9 +225,6 @@ void caller() {
223225// protobuf code that passes dynamically allocated memory to a certain function
224226// named GetOwnedMessageInternal.
225227namespace protobuf_leak {
226- #include " Inputs/system-header-simulator-for-protobuf.h"
227-
228- class MessageLite { int SomeField; }; // Sufficient for our purposes.
229228Arena *some_arena, *some_submessage_arena;
230229
231230MessageLite *protobuf_leak () {
You can’t perform that action at this time.
0 commit comments