Step 43 TDD test: Memory strategy code generation

Tests canonical annotation classes (DeallocateAnnotation, LifetimeAnnotation,
ReclaimAnnotation, OwnerAnnotation, AllocateAnnotation) exist and inherit from
Annotation. Tests C++ generation: @Deallocate(Explicit)->raw pointers,
@Lifetime(RAII)->unique_ptr, @Reclaim(Tracing)->shared_ptr,
@Owner(Shared_ARC)->shared_ptr. Verifies old DerefStrategy backward compat.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bill
2026-02-07 08:20:04 -07:00
parent 5952c51cb9
commit d966eae2cf
2 changed files with 228 additions and 0 deletions

View File

@@ -142,6 +142,9 @@ target_include_directories(step41_test PRIVATE src)
add_executable(step42_test tests/step42_test.cpp)
target_include_directories(step42_test PRIVATE src)
add_executable(step43_test tests/step43_test.cpp)
target_include_directories(step43_test PRIVATE src)
add_executable(whetstone_editor src/main.cpp)
target_include_directories(whetstone_editor PRIVATE src)
# find_package(SDL2 REQUIRED) # Commented out for now to avoid build issues