yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeDiagnose on use of struct inheritance. (#7419)4ae6e9d8b

master
255 B13 linesraw
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
2
3// Tests that we will diagnose a warning on struct inheritance being unstable
4// before Slang 2026.
5
6#lang 2025
7
8struct Base {}
9
10//CHECK: ([[# @LINE+1]]): warning 30816:
11struct Derived : Base {}
12
13struct Base1 {}