mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
03fc65347c
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D26280 --HG-- extra : moz-landing-system : lando
11 lines
210 B
C++
11 lines
210 B
C++
#include <stdint.h>
|
|
#include "gtest/gtest.h"
|
|
|
|
extern "C" uint8_t* test_rust();
|
|
|
|
TEST(rust, CallFromCpp)
|
|
{
|
|
auto greeting = test_rust();
|
|
EXPECT_STREQ(reinterpret_cast<char*>(greeting), "hello from rust.");
|
|
}
|