Skip to content

llcppgtest: test static lib #477

@MeteorsLiu

Description

@MeteorsLiu

​​Summary​​

llgo will introduce static library support, requiring new end-to-end tests in llcppgtest. These tests will validate static library compilation and linking by leveraging distinct import paths as specified in Issue #475.

​​Design​​

​​Import Path Distinction​​

Use zlib for dynamic library imports (existing).

Use zlibstatic for static library imports (new).

Test Example​​

// Test dynamic linking (existing)  
import _ "zlib"  
func TestDynamicLinkage(t *testing.T) {  
    // Validate dynamic library behavior  
}  
// Test static linking (new)  
import _ "zlibstatic"  
func TestStaticLinkage(t *testing.T) {  
    // Validate static library behavior  
}  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions