mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +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.");
|
|
}
|