mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-07 14:12:09 +00:00
aa1cccbbef
guard macro is already defined for the first occurrence of the header. If it is, the body will be skipped and not be properly analyzed for the include guard optimization. llvm-svn: 95972
16 lines
299 B
C
16 lines
299 B
C
// RUN: %clang_cc1 -E %s | FileCheck %s
|
|
// PR6282
|
|
// This test should not trigger the include guard optimization since
|
|
// the guard macro is defined on the first include.
|
|
|
|
#define ITERATING 1
|
|
#define X 1
|
|
#include "mi_opt2.h"
|
|
#undef X
|
|
#define X 2
|
|
#include "mi_opt2.h"
|
|
|
|
// CHECK: b: 1
|
|
// CHECK: b: 2
|
|
|