Files
pytorch/test/cpp/aoti_abi_check/test_macros.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
310 B
C++
Raw Permalink Normal View History

#include <gtest/gtest.h>
#include <torch/headeronly/macros/Export.h>
namespace torch {
namespace aot_inductor {
C10_API bool equal(int a, int b) {
return a == b;
}
TEST(TestMacros, TestC10API) {
EXPECT_TRUE(equal(1, 1));
EXPECT_FALSE(equal(1, 2));
}
} // namespace aot_inductor
} // namespace torch