18 lines · cpp
1// RUN: %clang_cc1 -E -dM -D__GCC_CONSTRUCTIVE_SIZE=1000 -D__GCC_DESTRUCTIVE_SIZE=1001 %s -verify -Weverything | FileCheck %s2// RUN: %clang_cc1 -D__GCC_CONSTRUCTIVE_SIZE=1000 -D__GCC_DESTRUCTIVE_SIZE=1001 %s -verify -Weverything3// RUN: %clang_cc1 -E -dM -U__GCC_CONSTRUCTIVE_SIZE -U__GCC_DESTRUCTIVE_SIZE %s -verify -Weverything | FileCheck --check-prefix DISABLED %s4// expected-no-diagnostics5 6// Validate that we can set a new value on the command line without issuing any7// diagnostics and that we can disabled the macro on the command line without8// issuing any diagnostics.9 10// CHECK: #define __GCC_CONSTRUCTIVE_SIZE 100011// CHECK: #define __GCC_DESTRUCTIVE_SIZE 100112// DISABLED-NOT: __GCC_CONSTRUCTIVE_SIZE13// DISABLED-NOT: __GCC_DESTRUCTIVE_SIZE14 15int main() {16 return 0;17}18