yum-mirror/slang

Making it easier to work with shaders

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

Yong HeAdd diagnostic for cyclic #include. (#8679)fb34bafd3

master
216 B13 linesraw
1//TEST:INTERPRET(filecheck=CHECK):
2
3// Test that it is OK to include the same file multiple times.
4
5#include "b.slang"
6
7#include "b.slang"
8
9void main()
10{
11    // CHECK: result: 23
12    printf("result: %d\n", foo());
13}