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

int64_t GetValue();

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

// Simple test of #pragma warning (error)