Fix issue #693. Ternary operator on void type.
This commit is contained in:
parent
c0904c15c2
commit
82e0e58993
4 changed files with 32 additions and 3 deletions
|
|
@ -236,3 +236,11 @@ void foo12111()
|
|||
|
||||
v = shadow2DRectProjGradARB(s2DRS, v, v2, v2);
|
||||
}
|
||||
|
||||
void voidTernary()
|
||||
{
|
||||
bool b;
|
||||
b ? foo121111() : foo12111();
|
||||
b ? foo121111() : 4; // ERROR
|
||||
b ? 3 : foo12111(); // ERROR
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue