Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Preprocessor / canonical-system-headers.c
blob0afa73c3e8225a9579d38079806e6c02bf28c5b2
1 // don't create symlinks on windows
2 // UNSUPPORTED: system-windows
3 // REQUIRES: shell
5 // RUN: rm -rf %t
6 // RUN: mkdir -p %t/foo/
7 // RUN: ln -f -s %S/Inputs/canonical-system-headers %t/foo/include
8 // RUN: %clang_cc1 -isystem %t/foo/include -sys-header-deps -MT foo.o -dependency-file %t2 %s -fsyntax-only
9 // RUN: FileCheck %s --check-prefix=NOCANON --implicit-check-not=a.h < %t2
10 // RUN: %clang_cc1 -isystem %t/foo/include -sys-header-deps -MT foo.o -dependency-file %t2 %s -fsyntax-only -canonical-system-headers
11 // RUN: FileCheck %s --check-prefix=CANON --implicit-check-not=a.h < %t2
13 // NOCANON: foo/include/a.h
14 // CANON: Inputs/canonical-system-headers/a.h
16 #include <a.h>