1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00
ladybird/Tests/ClangPlugins/LibJSGCTests/not_visiting_rawgcptr.cpp
2025-05-12 16:00:55 -04:00

17 lines
382 B
C++

/*
* Copyright (c) 2024, Matthew Olsson <mattco@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// RUN: %clang++ -Xclang -verify %plugin_opts% -c %s -o %t 2>&1
// expected-no-diagnostics
#include <LibGC/Cell.h>
#include <LibJS/Runtime/Object.h>
class TestClass : public JS::Object {
JS_OBJECT(TestClass, JS::Object);
GC::RawPtr<JS::Object> m_object;
};