• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 %s -Wunused-macros -Dfoo -Dfoo -verify
2 
3 #include "warn-macro-unused.h"
4 
5 # 1 "warn-macro-unused-fake-header.h" 1
6 #define unused_from_fake_header
7 # 5 "warn-macro-unused.c" 2
8 
9 #define unused // expected-warning {{macro is not used}}
10 #define unused
11 unused
12 
13 // rdar://9745065
14 #undef unused_from_header // no warning
15