summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/pragma-warning/defined-1.slang
blob: 0827aa1f31f4af4d15784cf749ef03013dc48691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//TEST:SIMPLE(filecheck=CHECK):
// #ifdef support

int64_t GetValue();
#define SPECIFIER error
#define IDs 30081 12 23 45

void f()
{
	int i;
#pragma warning (SPECIFIER : IDs)
	// CHECK: ([[# @LINE+1]]): error 30081:
	i = GetValue();
}

// Test that #pragma warning works with #defined specifiers and IDs