mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-25 02:09:41 -05:00
10 lines
210 B
C++
10 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.");
|
|
}
|