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
430 B18 linesraw
1//TEST:SIMPLE(filecheck=CHECK):
2// #ifdef support
3
4int64_t GetValue();
5#define SPECIFIER disable
6#define IDs 30081
7
8void f()
9{
10	int i;
11#pragma warning (error : 30081)
12	// CHECK: ([[# @LINE+1]]): error 30081:
13	i = GetValue();
14#pragma warning (SPECIFIER : IDs)
15}
16
17// Test that #pragma warning with #defined specifiers and IDs uses the correct SourceLoc
18// (Use the macro invocation's SourceLoc, not the macro definition's SourceLoc)