Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / macro-cmdline.c
blobc4647f5d4c92e63abbc54591ca0da5c592fdc954
1 // RUN: %clang_cc1 %s -emit-pch -o %t1.pch -DMACRO1=1
2 // RUN: %clang_cc1 -fsyntax-only %s -include-pch %t1.pch -DMACRO2=1 2>&1 | FileCheck %s
4 #ifndef HEADER
5 #define HEADER
6 #else
7 #define MACRO1 2
8 // CHECK: macro-cmdline.c{{.*}}'MACRO1' macro redefined
9 // CHECK: <command line>{{.*}}previous definition is here
10 #define MACRO2 2
11 // CHECK: macro-cmdline.c{{.*}}'MACRO2' macro redefined
12 // CHECK: <command line>{{.*}}previous definition is here
13 #endif