brintos

brintos / llvm-project-archived public Read only

0
0
Text · 555 B · f7d3d6d Raw
20 lines · c
1// RUN: %clang_cc1 %s -Eonly -verify -Wno-all -Wmacro-redefined -DCLI_MACRO=1 -DWMACRO_REDEFINED2// RUN: %clang_cc1 %s -Eonly -verify -Wno-all -Wno-macro-redefined -DCLI_MACRO=13 4#ifndef WMACRO_REDEFINED5// expected-no-diagnostics6#endif7 8#ifdef WMACRO_REDEFINED9// expected-note@1 {{previous definition is here}}10// expected-warning@+2 {{macro redefined}}11#endif12#define CLI_MACRO13 14#ifdef WMACRO_REDEFINED15// expected-note@+3 {{previous definition is here}}16// expected-warning@+3 {{macro redefined}}17#endif18#define REGULAR_MACRO19#define REGULAR_MACRO 120