summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/pragma-warning/once-1.slang
blob: e8ac29d3eae7150080b4b7fecebcf497a0734c7f (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();

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

// Simple test of #pragma warning (once)