mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
24 lines
583 B
C++
24 lines
583 B
C++
/*
|
|
* Copyright (c) 2024, Matthew Olsson <mattco@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
// RUN: %clang++ -cc1 -verify %plugin_opts% %s 2>&1
|
|
// expected-no-diagnostics
|
|
|
|
#include <LibJS/Runtime/Object.h>
|
|
|
|
class TestClass : public JS::Object {
|
|
JS_OBJECT(TestClass, JS::Object);
|
|
|
|
virtual void visit_edges(Visitor& visitor) override
|
|
{
|
|
Base::visit_edges(visitor);
|
|
|
|
// FIXME: It might be nice to check that the object is specifically passed to .visit() or .ignore()
|
|
(void)m_object;
|
|
}
|
|
|
|
JS::GCPtr<JS::Object> m_object;
|
|
};
|