From d32f97238c903765dec4e9a9f3cbfa5fd12cded6 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Mon, 10 Aug 2026 11:11:18 -0700 Subject: Chapter 25: Modules, Separate Compilation, and SSA Construction Co-authored-by: Hsiang-Ying Fu <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: fuhsnn <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: Symious <14933944+symious@users.noreply.github.com> Co-authored-by: Jun Kawasaki Co-authored-by: Claude Opus 5 --- src/test/java/com/seaofnodes/simple/progs/funptr.c | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/test/java/com/seaofnodes/simple/progs/funptr.c (limited to 'src/test/java/com/seaofnodes/simple/progs/funptr.c') diff --git a/src/test/java/com/seaofnodes/simple/progs/funptr.c b/src/test/java/com/seaofnodes/simple/progs/funptr.c deleted file mode 100644 index 2abe6e74..00000000 --- a/src/test/java/com/seaofnodes/simple/progs/funptr.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -#include - -typedef int64_t (*Function)(void); -typedef int64_t (*Printer)(void *, void *); -extern Function factory(int64_t); -extern Printer printer(void); - -int main(void) { - assert(factory(1)() == 42); - assert(factory(0)() == 43); - struct { uint32_t length; char data[2]; } text = {2, {'o','k'}}; - printer()(0, &text); // Unused class receiver, then the byte array. - return 0; -} -- cgit v1.2.3