Skip to content

Commit 3327c5f

Browse files
committed
Revert change FunctionReflectionTest.cpp
1 parent 1678dcb commit 3327c5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unittests/CppInterOp/FunctionReflectionTest.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,7 @@ TEST(FunctionReflectionTest, GetFunctionCallWrapper) {
15421542
FCI4.Invoke(&ret4);
15431543
EXPECT_EQ(ret4, 4);
15441544

1545+
#if CLANG_VERSION_MAJOR > 16
15451546
Cpp::JitCall FCI5 =
15461547
Cpp::MakeFunctionCallable(Cpp::GetNamed("f5", Cpp::GetNamed("NS")));
15471548
EXPECT_TRUE(FCI5.getKind() == Cpp::JitCall::kGenericCall);
@@ -1551,6 +1552,7 @@ TEST(FunctionReflectionTest, GetFunctionCallWrapper) {
15511552
FCI5.Invoke((void*)&callback);
15521553
EXPECT_TRUE(callback);
15531554
EXPECT_EQ(callback(), 3);
1555+
#endif
15541556

15551557
// FIXME: Do we need to support private ctors?
15561558
Interp->process(R"(
@@ -1627,7 +1629,9 @@ TEST(FunctionReflectionTest, GetFunctionCallWrapper) {
16271629
set_5_f.Invoke(nullptr, {set_5_args, 1});
16281630
EXPECT_EQ(b, 5);
16291631

1632+
#if CLANG_VERSION_MAJOR > 16
16301633
// typedef resolution testing
1634+
// supported for clang version >16 only
16311635
Interp->process(R"(
16321636
class TypedefToPrivateClass {
16331637
private:
@@ -1655,6 +1659,7 @@ TEST(FunctionReflectionTest, GetFunctionCallWrapper) {
16551659
void* res = nullptr;
16561660
FCI_f.Invoke(&res, {nullptr, 0});
16571661
EXPECT_TRUE(res);
1662+
#endif
16581663

16591664
// templated operators
16601665
Interp->process(R"(

0 commit comments

Comments
 (0)