mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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
19 lines
310 B
C++
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
|