mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 04:35:33 +00:00
9 lines
185 B
C++
9 lines
185 B
C++
|
#include <stdint.h>
|
||
|
|
||
|
extern "C" uint8_t* test_rust();
|
||
|
|
||
|
TEST(rust, CallFromCpp) {
|
||
|
auto greeting = test_rust();
|
||
|
EXPECT_STREQ(reinterpret_cast<char*>(greeting), "hello from rust.");
|
||
|
}
|