aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2023-09-18 21:35:02 +0100
committerMatt Valentine-House <matt@eightbitraptor.com>2023-09-19 14:54:15 +0100
commit5c5391f444624bcee6a258bcc7b4777c7c295ae7 (patch)
tree6fd489d661e1136b42ec3e61cabcb67580e74c5d /test/yarp
parent2f8daa5f5128ca63154ae6adb139c24ec0e14b40 (diff)
downloadruby-5c5391f444624bcee6a258bcc7b4777c7c295ae7.tar.gz
[YARP] Implement ClassVariableTargetNode
Diffstat (limited to 'test/yarp')
-rw-r--r--test/yarp/compiler_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/yarp/compiler_test.rb b/test/yarp/compiler_test.rb
index d99c2c281e..fdcc85eedd 100644
--- a/test/yarp/compiler_test.rb
+++ b/test/yarp/compiler_test.rb
@@ -86,6 +86,10 @@ module YARP
# Writes #
############################################################################
+ def test_ClassVariableTargetNode
+ test_yarp_eval("class YARP::CompilerTest; @@yct, @@yct1 = 1; end")
+ end
+
def test_ClassVariableWriteNode
test_yarp_eval("class YARP::CompilerTest; @@yct = 1; end")
end