Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Misc / clear-ast-before-backend.c
blobead640854cc40b94c38322d89d62dae9dca508e2
1 // REQUIRES: asserts
3 // RUN: %clang_cc1 -mllvm -debug-only=codegenaction -clear-ast-before-backend %s -emit-obj -o /dev/null -O1 2>&1 | FileCheck %s --check-prefix=YES
4 // RUN: %clang_cc1 -mllvm -debug-only=codegenaction -clear-ast-before-backend -no-clear-ast-before-backend %s -emit-obj -o /dev/null -O1 2>&1 | FileCheck %s --allow-empty --check-prefix=NO
5 // RUN: %clang_cc1 -clear-ast-before-backend %s -emit-obj -o /dev/null -print-stats 2>&1 | FileCheck %s --check-prefix=STATS
7 // YES: Clearing AST
8 // NO-NOT: Clearing AST
9 // STATS: *** Decl Stats:
10 // STATS: {{.*}} decls total
11 // STATS: 1 Function decls
12 // STATS: Total bytes =
14 void f(void) {}