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