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