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