| 1 |
// RUN: %clang_cc1 -E -dM -D__GCC_CONSTRUCTIVE_SIZE=1000 -D__GCC_DESTRUCTIVE_SIZE=1001 %s -verify -Weverything | FileCheck %s |
| 2 |
// RUN: %clang_cc1 -D__GCC_CONSTRUCTIVE_SIZE=1000 -D__GCC_DESTRUCTIVE_SIZE=1001 %s -verify -Weverything |
| 3 |
// RUN: %clang_cc1 -E -dM -U__GCC_CONSTRUCTIVE_SIZE -U__GCC_DESTRUCTIVE_SIZE %s -verify -Weverything | FileCheck --check-prefix DISABLED %s |
| 4 |
// expected-no-diagnostics |
| 5 |
|
| 6 |
// Validate that we can set a new value on the command line without issuing any |
| 7 |
// diagnostics and that we can disabled the macro on the command line without |
| 8 |
// issuing any diagnostics. |
| 9 |
|
| 10 |
// CHECK: #define __GCC_CONSTRUCTIVE_SIZE 1000 |
| 11 |
// CHECK: #define __GCC_DESTRUCTIVE_SIZE 1001 |
| 12 |
// DISABLED-NOT: __GCC_CONSTRUCTIVE_SIZE |
| 13 |
// DISABLED-NOT: __GCC_DESTRUCTIVE_SIZE |
| 14 |
|
| 15 |
int main() { |
| 16 |
return 0; |
| 17 |
} |