The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;

use Test::More;

use Inline::CPP::Config;

use Inline CPP => 'DATA';

# We're verifying that libs are getting wrapped in an array ref as required.

use Inline CPP => config => libs => '-lstdc++';

is( add( 1, 1, 1 ), 3, 'LIBS directive is OK.' );

done_testing();

__DATA__

__CPP__

int add ( int a, int b, int c ) {
    return a + b + c;
}