summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/pragma_diagnostic_output.c
blob: e847107f8631bc2ce6d1b4c58c33cbfe26ae65f8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// RUN: %clang_cc1 -E %s | FileCheck %s
// CHECK: #pragma GCC diagnostic warning "-Wall"
#pragma GCC diagnostic warning "-Wall"
// CHECK: #pragma GCC diagnostic ignored "-Wall"
#pragma GCC diagnostic ignored "-Wall"
// CHECK: #pragma GCC diagnostic error "-Wall"
#pragma GCC diagnostic error "-Wall"
// CHECK: #pragma GCC diagnostic fatal "-Wall"
#pragma GCC diagnostic fatal "-Wall"
// CHECK: #pragma GCC diagnostic push
#pragma GCC diagnostic push
// CHECK: #pragma GCC diagnostic pop
#pragma GCC diagnostic pop

// CHECK: #pragma clang diagnostic warning "-Wall"
#pragma clang diagnostic warning "-Wall"
// CHECK: #pragma clang diagnostic ignored "-Wall"
#pragma clang diagnostic ignored "-Wall"
// CHECK: #pragma clang diagnostic error "-Wall"
#pragma clang diagnostic error "-Wall"
// CHECK: #pragma clang diagnostic fatal "-Wall"
#pragma clang diagnostic fatal "-Wall"
// CHECK: #pragma clang diagnostic push
#pragma clang diagnostic push
// CHECK: #pragma clang diagnostic pop
#pragma clang diagnostic pop