Files
pytorch/test/cpp/aoti_abi_check/test_macros.cpp
Scott Wolchok fee2377f9e Reapply D77381084 / #156964: Rename torch::standalone to headeronly (#157251)
Was reverted due to internal failure which should be fixed now. I believe Jane wants this reapplied and picked to release, and she's out this week.

Original summary:

headeronly is more clear, let's change the name before anyone depends on standalone

Differential Revision: [D77520173](https://our.internmc.facebook.com/intern/diff/D77520173/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/157251
Approved by: https://github.com/janeyx99, https://github.com/Skylion007, https://github.com/desertfire
2025-06-30 23:25:30 +00:00

19 lines
310 B
C++

#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