https://github.com/shader-slang/slang
Raw File
Tip revision: b45e5aa07cf5e2e0bd23cf4c14bb40104b0b641c authored by Yong He on 28 June 2023, 23:09:06 UTC
Fix parameter block loads in GLSL emit. (#2946)
Tip revision: b45e5aa
class-keyword.slang
//DISABLED_TEST:DIAGNOSTIC_TEST:SIMPLE:

// `class` keyword is a reserved keyword in this context, and wso should produce an error.
// It can be used in the form of `enum class` 

class SomeClass
{
    int a;
    int b;
};
back to top