Mercurial > hg > CbC > CbC_llvm
view clang/test/Preprocessor/macro_redefined.c @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 %s -Eonly -verify -Wno-all -Wmacro-redefined -DCLI_MACRO=1 -DWMACRO_REDEFINED // RUN: %clang_cc1 %s -Eonly -verify -Wno-all -Wno-macro-redefined -DCLI_MACRO=1 #ifndef WMACRO_REDEFINED // expected-no-diagnostics #endif #ifdef WMACRO_REDEFINED // expected-note@1 {{previous definition is here}} // expected-warning@+2 {{macro redefined}} #endif #define CLI_MACRO #ifdef WMACRO_REDEFINED // expected-note@+3 {{previous definition is here}} // expected-warning@+3 {{macro redefined}} #endif #define REGULAR_MACRO #define REGULAR_MACRO 1