2017-09-12 04:18:09 +08:00
|
|
|
// RUN: %clang -### -target armv7-unknown-windows-msvc -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target armv7-unknown-windows-itanium -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target armv7-unknown-windows-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target armv7-unknown-windows-cygnus -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target i686-unknown-windows-msvc -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target i686-unknown-windows-itanium -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target i686-unknown-windows-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target i686-unknown-windows-cygnus -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target x86_64-unknown-windows-msvc -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target x86_64-unknown-windows-itanium -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target x86_64-unknown-windows-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target x86_64-unknown-windows-cygnus -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS
|
|
|
|
// RUN: %clang -### -target hexagon-unknown-none -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-HEXAGON
|
|
|
|
// RUN: %clang -### -target xcore-unknown-none -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-XCORE
|
|
|
|
// RUN: %clang -### -target armv7-mti-none -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-MTI
|
|
|
|
// RUN: %clang -### -target mips-unknown-none -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-MIPS
|
|
|
|
// RUN: %clang -### -target mips-unknown-none-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-MIPS
|
|
|
|
// RUN: %clang -### -target mips-mti-none-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-MIPS
|
|
|
|
// RUN: %clang -### -target sparc-sun-solaris -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-SOLARIS
|
2020-06-19 07:52:34 +08:00
|
|
|
// RUN: %clang -### -target powerpc-ibm-aix-xcoff -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-AIX
|
|
|
|
// RUN: %clang -### -target powerpc64-ibm-aix-xcoff -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-AIX
|
2017-09-12 04:18:09 +08:00
|
|
|
|
|
|
|
// CHECK-WINDOWS: "-fno-use-cxa-atexit"
|
2019-07-17 16:37:00 +08:00
|
|
|
// CHECK-SOLARIS-NOT: "-fno-use-cxa-atexit"
|
2018-08-17 11:53:51 +08:00
|
|
|
// CHECK-HEXAGON-NOT: "-fno-use-cxa-atexit"
|
2017-09-12 04:18:09 +08:00
|
|
|
// CHECK-XCORE: "-fno-use-cxa-atexit"
|
|
|
|
// CHECK-MTI: "-fno-use-cxa-atexit"
|
|
|
|
// CHECK-MIPS-NOT: "-fno-use-cxa-atexit"
|
2020-06-19 07:52:34 +08:00
|
|
|
// CHECK-AIX: "-fno-use-cxa-atexit"
|
2017-09-12 04:18:09 +08:00
|
|
|
|
2018-04-18 02:41:52 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin -fregister-global-dtors-with-atexit -fno-register-global-dtors-with-atexit -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin -fno-register-global-dtors-with-atexit -fregister-global-dtors-with-atexit -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHATEXIT %s
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHATEXIT %s
|
2018-04-27 09:42:33 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin -c -mkernel -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s
|
2020-07-17 02:29:13 +08:00
|
|
|
|
2018-04-18 02:41:52 +08:00
|
|
|
// RUN: %clang -target x86_64-pc-linux-gnu -fregister-global-dtors-with-atexit -fno-register-global-dtors-with-atexit -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s
|
|
|
|
// RUN: %clang -target x86_64-pc-linux-gnu -fno-register-global-dtors-with-atexit -fregister-global-dtors-with-atexit -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHATEXIT %s
|
|
|
|
// RUN: %clang -target x86_64-pc-linux-gnu -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s
|
|
|
|
|
2020-07-17 02:29:13 +08:00
|
|
|
// RUN: %clang -target powerpc-ibm-aix-xcoff -fregister-global-dtors-with-atexit -fno-register-global-dtors-with-atexit -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s
|
|
|
|
// RUN: %clang -target powerpc-ibm-aix-xcoff -fno-register-global-dtors-with-atexit -fregister-global-dtors-with-atexit -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHATEXIT %s
|
|
|
|
// RUN: %clang -target powerpc-ibm-aix-xcoff -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s
|
|
|
|
// RUN: %clang -target powerpc64-ibm-aix-xcoff -fregister-global-dtors-with-atexit -fno-register-global-dtors-with-atexit -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s
|
|
|
|
// RUN: %clang -target powerpc64-ibm-aix-xcoff -fno-register-global-dtors-with-atexit -fregister-global-dtors-with-atexit -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHATEXIT %s
|
|
|
|
// RUN: %clang -target powerpc64-ibm-aix-xcoff -c -### %s 2>&1 | \
|
|
|
|
// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s
|
|
|
|
|
2018-04-18 02:41:52 +08:00
|
|
|
// WITHATEXIT: -fregister-global-dtors-with-atexit
|
|
|
|
// WITHOUTATEXIT-NOT: -fregister-global-dtors-with-atexit
|