Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / ExtractAPI / ignored-symbols.c
blob2a24430f11c32b308a586f09ec90eb144c1918ba
1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
3 // RUN: %clang_cc1 -extract-api -triple arm64-apple-macosx \
4 // RUN: --extract-api-ignores=%t/ignores-list \
5 // RUN: -x c-header %t/input.h -verify -o - | FileCheck %t/input.h
7 //--- input.h
8 #define IGNORED_1 1
9 #define IGNORED_2 2
10 #define IGNORED_3 3
11 #define IGNORED_4 4
12 typedef int Ignored;
13 typedef float NonIgnored;
15 // CHECK-NOT: IGNORED_1
16 // CHECK-NOT: IGNORED_2
17 // CHECK-NOT: IGNORED_3
18 // CHECK: NonIgnored
20 // expected-no-diagnostics
22 //--- ignores-list
23 Ignored
24 IGNORED_4
25 IGNORED_3
26 IGNORED_2
27 IGNORED_1