fune/xpcom/rust/gtest/moz_task/TestMozTask.cpp
Mike Hommey ae874d3dfc Bug 1733308 - Forbid sources files with the same base name. r=firefox-build-system-reviewers,andi
While the build system could be improved to actually support those
cases, because of all the legacy things involved, it would be a lot more
work for a low reward.

Instead, we forbid them, which allows to remove the non-unified builds
exception in xpcom/rust/gtest.

Differential Revision: https://phabricator.services.mozilla.com/D127035
2021-10-01 01:49:16 +00:00

14 lines
385 B
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "gtest/gtest.h"
extern "C" void Rust_Future(bool* aItWorked);
TEST(RustMozTask, Future)
{
bool itWorked = false;
Rust_Future(&itWorked);
EXPECT_TRUE(itWorked);
}