comparison clang/test/Driver/xcore-opts.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 0572611fdcc8
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
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
5
6 // CHECK: "-mframe-pointer=none"
7 // CHECK: "-nostdsysteminc"
8 // CHECK: "-fno-signed-char"
9 // CHECK: "-fno-use-cxa-atexit"
10 // CHECK-NOT: "-fcxx-exceptions"
11 // CHECK-NOT: "-fexceptions"
12 // CHECK: "-fno-common"
13 // CHECK: xcc" "-o"
14 // CHECK-NOT: "-fexceptions"
15 // CHECK: "-c" "-v" "-g" "-fverbose-asm" "A1Arg" "A2Arg"
16 // CHECK: xcc" "-o"
17 // CHECK-NOT: "-fexceptions"
18 // CHECK: "-v"
19 // CHECK: "L1Arg" "L2Arg"
20
21 // CHECK-EXCEP: "-fno-use-cxa-atexit"
22 // CHECK-EXCEP: "-fcxx-exceptions"
23 // CHECK-EXCEP: "-fexceptions"
24 // CHECK-EXCEP: "-fno-common"
25 // CHECK-EXCEP: xcc" "-o"
26 // CHECK-EXCEP-NOT: "-fexceptions"
27 // CHECK-EXCEP: xcc" "-o"
28 // CHECK-EXCEP: "-fexceptions"
29
30 // CHECK-G0: xcc"
31 // CHECK-G0-NOT: "-g"
32 // CHECK-G0: xcc"
33