[llvm] [TableGen] Allow emitter callbacks to use `const RecordKeeper &` (PR #104716)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 23 06:10:47 PDT 2024
" + sys::path::filename(Record.getInputFilename()),"
In-Reply-To: <llvm.org/llvm/llvm-project/pull/104716 at github.com>
================
@@ -59,4 +59,12 @@ TEST(FunctionRefTest, SFINAE) {
EXPECT_EQ("string", returns([] { return "hello"; }));
}
+TEST(FunctionRefTest, Equality) {
+ function_ref<int()> X = [] { return 1; };
+ function_ref<int()> Y = [] { return 2; };
+ EXPECT_TRUE(!(X == Y));
----------------
jurahul wrote:
The != is not synthesized from ==, so dropped those test and added the one you suggested.
https://github.com/llvm/llvm-project/pull/104716
More information about the llvm-commits
mailing list