2024-04-16 00:07:30 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2024, Matthew Olsson <mattco@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
2025-05-12 16:30:47 -03:00
|
|
|
// RUN: %clang++ -Xclang -verify %plugin_opts% -c %s -o %t 2>&1
|
2024-04-16 00:07:30 -03:00
|
|
|
|
|
|
|
|
#include <LibJS/Runtime/Object.h>
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
// expected-error@+1 {{GC::Cell-inheriting class TestClass contains a GC-allocated member 'm_cell' but has no visit_edges method}}
|
2024-04-16 00:07:30 -03:00
|
|
|
class TestClass : public JS::Object {
|
|
|
|
|
JS_OBJECT(TestClass, JS::Object);
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC::Ptr<JS::Object> m_cell;
|
2024-04-16 00:07:30 -03:00
|
|
|
};
|