Debian Codegraph @

clang/test/Driver/extend-variable-liveness.c

raw
1 // Tests that -fextend-variable-liveness and its aliases are correctly passed
2 // by the driver, and are set by default at -Og.
3
4 // RUN: %clang -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,DEFAULT
5 // RUN: %clang -### -Og -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL
6 // RUN: %clang -fextend-variable-liveness=none -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,NONE
7 // RUN: %clang -fextend-variable-liveness=this -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,THIS
8 // RUN: %clang -fextend-variable-liveness=all -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL
9 // RUN: %clang -fextend-variable-liveness -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL
10
11 // CHECK: "-cc1"
12 // DEFAULT-NOT: -fextend-variable-liveness
13 // NONE-SAME: "-fextend-variable-liveness=none"
14 // THIS-SAME: "-fextend-variable-liveness=this"
15 // ALL-SAME: "-fextend-variable-liveness=all"