Files
sx/examples/ffi-jni/1411-ffi-jni-class-01-empty.sx
agra 66bdc70bf1 test: group examples into per-category folders
Move examples/*.sx and their expected/ snapshots into per-category
subfolders (examples/<category>/...). Folder = leading filename token,
with ffi-objc/ffi-jni kept whole; filenames are unchanged. The corpus
runner and LSP sweep now discover each category's expected/ dir, while
issues/ stays flat. Example 1058's repo-root-relative companion import
is made file-relative. Path strings embedded in 164 snapshots were
regenerated (path-only changes). Test-layout docs in CLAUDE.md updated.
2026-06-21 14:41:34 +03:00

19 lines
635 B
Plaintext

// Phase 2 step 2.0 (PLAN-FFI.md): xfail parser test for the
// type-introducer `Foo :: #jni_class("java/path/Foo") extern { }` directive.
//
// Today's parser doesn't recognize `#jni_class` as a known hash
// directive after `::`, so it falls through to expression parsing
// and fails at the `#` token. Step 2.1 (next commit) extends
// `parseConstBinding` to accept the directive, treat an empty body
// as an opaque forward declaration, and re-snapshots this file to
// capture the green behavior.
#import "modules/std.sx";
Foo :: #jni_class("java/path/Foo") extern { }
main :: () -> i32 {
print("parse-only ok\n");
0
}