summaryrefslogtreecommitdiff
path: root/tests/bugs/split-nested-types.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-12-06 12:05:07 -0800
committerGitHub <noreply@github.com>2023-12-06 12:05:07 -0800
commit11111e5733b189127dc2c4934d67693b9bc6e764 (patch)
tree0ba84df3e856eb104abec2ecac47242bc70a7b7d /tests/bugs/split-nested-types.slang
parentfa6d8717d02912697c09f2d7de802723ac6d6e47 (diff)
Support visibility control and default to `internal`. (#3380)
* Support visibility control and default to `internal`. * Fix wip. * Fixes. * Fix. * Fix test. * Add legacy language detection and compatibility for existing code. * Add doc. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/bugs/split-nested-types.slang')
-rw-r--r--tests/bugs/split-nested-types.slang14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/bugs/split-nested-types.slang b/tests/bugs/split-nested-types.slang
index 3bd4e239f..b9bfb9e62 100644
--- a/tests/bugs/split-nested-types.slang
+++ b/tests/bugs/split-nested-types.slang
@@ -1,14 +1,14 @@
//TEST_IGNORE_FILE:
-struct A { int x; };
+public struct A { public int x; };
-struct B { float y; };
+public struct B { public float y; };
-struct CC { Texture2D t; SamplerState s; };
+public struct CC { public Texture2D t; public SamplerState s; };
-struct M
+public struct M
{
- A a;
- B b;
- CC c;
+ public A a;
+ public B b;
+ public CC c;
};