16 lines · c
1// Tests that -fextend-variable-liveness and its aliases are correctly passed2// by the driver, and are set by default at -Og.3 4// RUN: %clang -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,DEFAULT5// RUN: %clang -### -Og -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL6// RUN: %clang -fextend-variable-liveness=none -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,NONE7// RUN: %clang -fextend-variable-liveness=this -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,THIS8// RUN: %clang -fextend-variable-liveness=all -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL9// RUN: %clang -fextend-variable-liveness -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL10 11// CHECK: "-cc1"12// DEFAULT-NOT: -fextend-variable-liveness13// NONE-SAME: "-fextend-variable-liveness=none"14// THIS-SAME: "-fextend-variable-liveness=this"15// ALL-SAME: "-fextend-variable-liveness=all"16