yum-mirror/slang

Making it easier to work with shaders

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

RonanImplemented #pragma warning (#6748)5f632cd20

master
323 B15 linesraw
1//TEST:SIMPLE(filecheck=CHECK):
2// #ifdef support
3#pragma warning (error : 30081)
4#pragma warning (push)
5#pragma warning (disable : 30081)
6int64_t GetValue();
7#pragma warning (pop)
8void f()
9{
10	int i;
11	// CHECK: ([[# @LINE+1]]): error 30081:
12	i = GetValue();
13}
14
15// Test that #pragma warning (push) and (pop) work as expected