aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/objectCompiler/data.yul
diff options
context:
space:
mode:
Diffstat (limited to 'test/libyul/objectCompiler/data.yul')
-rw-r--r--test/libyul/objectCompiler/data.yul11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libyul/objectCompiler/data.yul b/test/libyul/objectCompiler/data.yul
new file mode 100644
index 00000000..daa22d21
--- /dev/null
+++ b/test/libyul/objectCompiler/data.yul
@@ -0,0 +1,11 @@
+object "a" {
+ code {}
+ // Unreferenced data is not added to the assembled bytecode.
+ data "str" "Hello, World!"
+}
+// ----
+// Assembly:
+// stop
+// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
+// Bytecode: fe
+// Opcodes: INVALID