15 lines · c
1// REQUIRES: asserts2 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=YES4// 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=NO5// RUN: %clang_cc1 -clear-ast-before-backend %s -emit-obj -o /dev/null -print-stats 2>&1 | FileCheck %s --check-prefix=STATS6 7// YES: Clearing AST8// NO-NOT: Clearing AST9// STATS: *** Decl Stats:10// STATS: {{.*}} decls total11// STATS: 1 Function decls12// STATS: Total bytes =13 14void f(void) {}15