DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (1aeaa33a64f9)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9
#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.");
}