xref: /llvm-project/clang/test/Driver/extend-variable-liveness.c (revision 822f74a91106b7ca10e85508eb642e62ef945afa)
1 // Tests that -fextend-variable-liveness and its aliases are correctly passed
2 // by the driver.
3 
4 // RUN: %clang -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,DEFAULT
5 // RUN: %clang -fextend-variable-liveness=none -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,NONE
6 // RUN: %clang -fextend-variable-liveness=this -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,THIS
7 // RUN: %clang -fextend-variable-liveness=all -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL
8 // RUN: %clang -fextend-variable-liveness -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL
9 
10 // CHECK:       "-cc1"
11 // DEFAULT-NOT: -fextend-variable-liveness
12 // NONE-SAME:   "-fextend-variable-liveness=none"
13 // THIS-SAME:   "-fextend-variable-liveness=this"
14 // ALL-SAME:    "-fextend-variable-liveness=all"
15