2021-10-20 06:17:07 +08:00
|
|
|
// REQUIRES: asserts
|
2021-10-18 13:48:35 +08:00
|
|
|
|
2021-10-20 06:17:07 +08:00
|
|
|
// 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
|
|
|
|
// 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
|
|
|
|
// RUN: %clang_cc1 -clear-ast-before-backend %s -emit-obj -o /dev/null -print-stats 2>&1 | FileCheck %s --check-prefix=STATS
|
|
|
|
|
|
|
|
// YES: Clearing AST
|
|
|
|
// NO-NOT: Clearing AST
|
|
|
|
// STATS: *** Decl Stats:
|
|
|
|
// STATS: {{.*}} decls total
|
|
|
|
// STATS: 1 Function decls
|
|
|
|
// STATS: Total bytes =
|
2021-09-15 04:09:23 +08:00
|
|
|
|
2022-02-10 06:13:53 +08:00
|
|
|
void f(void) {}
|