raku -Ilib -e 'use experimental :rakuast; use MONKEY-SEE-NO-EVAL; my $ast = RakuAST::Statement::Need.new( module-names => [ RakuAST::Name.from-identifier(RakuAST::Name.from-identifier("GLib::Raw::Definitions")) ] ); EVAL $ast; import ::("GLib::Raw::Definitions"); glib.say'
This is the exact testing data. It's execution ready if you clone p6-GLib, you should
only need to change into the project directory and run the above. Otherwise you will have to create a .rakumod file
with a constant declaration and replace the glib
in the above script with the name of that constant.