yum-mirror/slang

Making it easier to work with shaders

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

jsmall-nvidiaFeature/test improvements (#934)2896aa39a

master
398 B19 linesraw
1//DIAGNOSTIC_TEST:SIMPLE:-target dxbc -profile ps_5_0
2
3// Early versions of the front-end had bugs when local
4// variables were used before their definition, or
5// were defined using a reference to themselves.
6//
7// This file tries to ensure that we emit proper error
8// diagnostics in these cases.
9
10void usedInOwnDeclaration()
11{
12	int e = e;
13}
14
15float4 main()
16{
17	usedInOwnDeclaration();
18	return 0;
19}