Mercurial > hg > CbC > CbC_llvm
diff clang/test/Driver/xcore-opts.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 0572611fdcc8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clang/test/Driver/xcore-opts.c Thu Feb 13 15:10:13 2020 +0900 @@ -0,0 +1,33 @@ +// RUN: %clang -target xcore %s -g -Wl,L1Arg,L2Arg -Wa,A1Arg,A2Arg -fverbose-asm -v -### -o %t.o 2>&1 | FileCheck %s +// RUN: %clang -target xcore -x c++ %s -g -Wl,L1Arg,L2Arg -Wa,A1Arg,A2Arg -fverbose-asm -v -### -o %t.o 2>&1 | FileCheck %s +// RUN: %clang -target xcore -x c++ %s -fexceptions -### -o %t.o 2>&1 | FileCheck -check-prefix CHECK-EXCEP %s +// RUN: %clang -target xcore %s -g0 -### -o %t.o 2>&1 | FileCheck -check-prefix CHECK-G0 %s + +// CHECK: "-mframe-pointer=none" +// CHECK: "-nostdsysteminc" +// CHECK: "-fno-signed-char" +// CHECK: "-fno-use-cxa-atexit" +// CHECK-NOT: "-fcxx-exceptions" +// CHECK-NOT: "-fexceptions" +// CHECK: "-fno-common" +// CHECK: xcc" "-o" +// CHECK-NOT: "-fexceptions" +// CHECK: "-c" "-v" "-g" "-fverbose-asm" "A1Arg" "A2Arg" +// CHECK: xcc" "-o" +// CHECK-NOT: "-fexceptions" +// CHECK: "-v" +// CHECK: "L1Arg" "L2Arg" + +// CHECK-EXCEP: "-fno-use-cxa-atexit" +// CHECK-EXCEP: "-fcxx-exceptions" +// CHECK-EXCEP: "-fexceptions" +// CHECK-EXCEP: "-fno-common" +// CHECK-EXCEP: xcc" "-o" +// CHECK-EXCEP-NOT: "-fexceptions" +// CHECK-EXCEP: xcc" "-o" +// CHECK-EXCEP: "-fexceptions" + +// CHECK-G0: xcc" +// CHECK-G0-NOT: "-g" +// CHECK-G0: xcc" +