[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / warn-macro-unused.c
bloba305cc9966ad8f526f2213f347774326582e8491
1 // RUN: %clang_cc1 %s -Wunused-macros -Dfoo -Dfoo -verify
3 #include "warn-macro-unused.h"
5 # 1 "warn-macro-unused-fake-header.h" 1
6 #define unused_from_fake_header
7 # 5 "warn-macro-unused.c" 2
9 #define unused // expected-warning {{macro is not used}}
10 #define unused
11 unused
13 // rdar://9745065
14 #undef unused_from_header // no warning