mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 01:46:41 +00:00

-frewrite-includes calls PP.SetMacroExpansionOnlyInDirectives() to avoid macro expansions that are useless in that mode, but this can lead to -Wunused-macros false positives. As -frewrite-includes does not emit normal warnings, block -Wunused-macros too. Differential Revision: https://reviews.llvm.org/D65371 llvm-svn: 372026
8 lines
204 B
C
8 lines
204 B
C
// RUN: %clang_cc1 -verify -Wall -Wextra -Wunused-macros -E -frewrite-includes %s
|
|
// expected-no-diagnostics
|
|
|
|
#pragma GCC visibility push (default)
|
|
|
|
#define USED_MACRO 1
|
|
int test() { return USED_MACRO; }
|