From 9977d2361d5bc7be115fc15b80351d2f6c9ee365 Mon Sep 17 00:00:00 2001 From: Danilo Piparo <danilo.piparo@cern.ch> Date: Fri, 31 Aug 2018 17:58:23 +0200 Subject: [PATCH] [DF] Test for ROOT-9632 --- tree/dataframe/test/dataframe_simple.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tree/dataframe/test/dataframe_simple.cxx b/tree/dataframe/test/dataframe_simple.cxx index 96f1f7242b7..d0b63764afc 100644 --- a/tree/dataframe/test/dataframe_simple.cxx +++ b/tree/dataframe/test/dataframe_simple.cxx @@ -175,6 +175,18 @@ TEST_P(RDFSimpleTests, Define_jitted) EXPECT_DOUBLE_EQ(1., *m); } +struct RFoo {}; + +TEST_P(RDFSimpleTests, Define_jitted_type_unknown_to_interpreter) +{ + RDataFrame tdf(10); + auto d = tdf.Define("foo", [](){return RFoo();}); + + // We check that the if nothing is done with RFoo in jitted strings + // everything works fine + EXPECT_EQ(10U, *d.Count()); +} + TEST_P(RDFSimpleTests, Define_jitted_complex) { // this test case (as all others) is usually run twice, in IMT and non-IMT mode, -- GitLab