blob: 22e10b08cea2f0e335d89daa98afc4c971605f6f [file] [log] [blame]
void void_function() {}
void bool_or_float() { float x = 5 > 2 ? true : 1.0; }
void float3_or_float() { float x = 5 > 2 ? float3(1) : 1.0; }
void void_or_void() { 5 > 2 ? void_function() : void_function(); }
/*%%*
ternary operator result mismatch: 'bool', 'float'
ternary operator result mismatch: 'float3', 'float'
ternary expression of type 'void' is not allowed
*%%*/