Teach ClassLinkerTest about Reference.referent

Change-Id: I14ac62739c6e7afa34712d10b2db3d783945b5e4
diff --git a/src/class_linker_test.cc b/src/class_linker_test.cc
index 8be1b90..a646f4e 100644
--- a/src/class_linker_test.cc
+++ b/src/class_linker_test.cc
@@ -241,7 +241,11 @@
       Field* field = klass->GetInstanceField(i);
       Class* field_type = field->GetType();
       ASSERT_TRUE(field_type != NULL);
-      EXPECT_TRUE(field_type->IsPrimitive());
+      if (!field_type->IsPrimitive()) {
+        // While Reference.referent is not primitive, the ClassLinker
+        // treats it as such so that the garbage collector won't scan it.
+        EXPECT_EQ(PrettyField(field), "java.lang.Object java.lang.ref.Reference.referent");
+      }
     }
 
     size_t total_num_reference_instance_fields = 0;