[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / xcore-opts.c
blobd4b400cbe933e29d14f67a72fb7011d87c9b0ef6
1 // RUN: %clang -target xcore %s -g -Wl,L1Arg,L2Arg -Wa,A1Arg,A2Arg -fverbose-asm -v -### -o %t.o 2>&1 | FileCheck %s
2 // RUN: %clang -target xcore -x c++ %s -g -Wl,L1Arg,L2Arg -Wa,A1Arg,A2Arg -fverbose-asm -v -### -o %t.o 2>&1 | FileCheck %s
3 // RUN: %clang -target xcore -x c++ %s -fexceptions -### -o %t.o 2>&1 | FileCheck -check-prefix CHECK-EXCEP %s
4 // RUN: %clang -target xcore %s -g0 -### -o %t.o 2>&1 | FileCheck -check-prefix CHECK-G0 %s
6 // CHECK: "-mframe-pointer=none"
7 // CHECK: "-nostdsysteminc" "-fno-use-cxa-atexit"
8 // CHECK: "-fno-signed-char"
9 // CHECK-NOT: "-fcxx-exceptions"
10 // CHECK-NOT: "-fexceptions"
11 // CHECK-NOT: "-fcommon"
12 // CHECK: xcc" "-o"
13 // CHECK-NOT: "-fexceptions"
14 // CHECK: "-c" "-v" "-g" "-fverbose-asm" "A1Arg" "A2Arg"
15 // CHECK: xcc" "-o"
16 // CHECK-NOT: "-fexceptions"
17 // CHECK: "-v"
18 // CHECK: "L1Arg" "L2Arg"
20 // CHECK-EXCEP: "-fno-use-cxa-atexit"
21 // CHECK-EXCEP: "-fcxx-exceptions"
22 // CHECK-EXCEP: "-fexceptions"
23 // CHECK-EXCEP-NOT: "-fcommon"
24 // CHECK-EXCEP: xcc" "-o"
25 // CHECK-EXCEP-NOT: "-fexceptions"
26 // CHECK-EXCEP: xcc" "-o"
27 // CHECK-EXCEP: "-fexceptions"
29 // CHECK-G0: xcc"
30 // CHECK-G0-NOT: "-g"
31 // CHECK-G0: xcc"