incorrectly apply the multiple include optimization to files with guards like: #if !defined(x) MACRO where MACRO could expand to different things in different contexts. Thanks Neil! llvm-svn: 45716
12 lines
225 B
C
12 lines
225 B
C
// RUN: not clang -fsyntax-only %s
|
|
// PR1900
|
|
// This test should get a redefinition error from m_iopt.h: the MI opt
|
|
// shouldn't apply.
|
|
|
|
#define MACRO
|
|
#include "mi_opt.h"
|
|
#undef MACRO
|
|
#define MACRO || 1
|
|
#include "mi_opt.h"
|
|
|