63 lines · cpp
1// RUN: %clang -### -target armv7-unknown-windows-msvc -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS2// RUN: %clang -### -target armv7-unknown-windows-itanium -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS3// RUN: %clang -### -target armv7-unknown-windows-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS4// RUN: %clang -### -target armv7-unknown-windows-cygnus -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-CYGWIN5// RUN: %clang -### -target i686-unknown-windows-msvc -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS6// RUN: %clang -### -target i686-unknown-windows-itanium -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS7// RUN: %clang -### -target i686-unknown-windows-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS8// RUN: %clang -### -target i686-unknown-windows-cygnus -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-CYGWIN9// RUN: %clang -### -target x86_64-unknown-windows-msvc -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS10// RUN: %clang -### -target x86_64-unknown-windows-itanium -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS11// RUN: %clang -### -target x86_64-unknown-windows-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-WINDOWS12// RUN: %clang -### -target x86_64-unknown-windows-cygnus -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-CYGWIN13// RUN: %clang -### -target hexagon-unknown-none -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-HEXAGON14// RUN: %clang -### -target xcore-unknown-none -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-XCORE15// RUN: %clang -### -target armv7-mti-none -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-MTI16// RUN: %clang -### -target mips-unknown-none -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-MIPS17// RUN: %clang -### -target mips-unknown-none-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-MIPS18// RUN: %clang -### -target mips-mti-none-gnu -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-MIPS19// RUN: %clang -### -target sparc-sun-solaris -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-SOLARIS20// RUN: %clang -### -target powerpc-ibm-aix-xcoff -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-AIX21// RUN: %clang -### -target powerpc64-ibm-aix-xcoff -c %s -o /dev/null 2>&1 | FileCheck %s -check-prefix CHECK-AIX22 23// CHECK-WINDOWS: "-fno-use-cxa-atexit"24// CHECK-CYGWIN-NOT: "-fno-use-cxa-atexit"25// CHECK-SOLARIS-NOT: "-fno-use-cxa-atexit"26// CHECK-HEXAGON-NOT: "-fno-use-cxa-atexit"27// CHECK-XCORE: "-fno-use-cxa-atexit"28// CHECK-MTI: "-fno-use-cxa-atexit"29// CHECK-MIPS-NOT: "-fno-use-cxa-atexit"30// CHECK-AIX: "-fno-use-cxa-atexit"31 32// RUN: %clang -target x86_64-apple-darwin -fregister-global-dtors-with-atexit -fno-register-global-dtors-with-atexit -c -### %s 2>&1 | \33// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s34// RUN: %clang -target x86_64-apple-darwin -fno-register-global-dtors-with-atexit -fregister-global-dtors-with-atexit -c -### %s 2>&1 | \35// RUN: FileCheck --check-prefix=WITHATEXIT %s36// RUN: %clang -target x86_64-apple-darwin -c -### %s 2>&1 | \37// RUN: FileCheck --check-prefix=WITHATEXIT %s38// RUN: %clang -target x86_64-apple-darwin -c -mkernel -### %s 2>&1 | \39// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s40 41// RUN: %clang -target x86_64-pc-linux-gnu -fregister-global-dtors-with-atexit -fno-register-global-dtors-with-atexit -c -### %s 2>&1 | \42// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s43// RUN: %clang -target x86_64-pc-linux-gnu -fno-register-global-dtors-with-atexit -fregister-global-dtors-with-atexit -c -### %s 2>&1 | \44// RUN: FileCheck --check-prefix=WITHATEXIT %s45// RUN: %clang -target x86_64-pc-linux-gnu -c -### %s 2>&1 | \46// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s47 48// RUN: %clang -target powerpc-ibm-aix-xcoff -fregister-global-dtors-with-atexit -fno-register-global-dtors-with-atexit -c -### %s 2>&1 | \49// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s50// RUN: %clang -target powerpc-ibm-aix-xcoff -fno-register-global-dtors-with-atexit -fregister-global-dtors-with-atexit -c -### %s 2>&1 | \51// RUN: FileCheck --check-prefix=WITHATEXIT %s52// RUN: %clang -target powerpc-ibm-aix-xcoff -c -### %s 2>&1 | \53// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s54// RUN: %clang -target powerpc64-ibm-aix-xcoff -fregister-global-dtors-with-atexit -fno-register-global-dtors-with-atexit -c -### %s 2>&1 | \55// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s56// RUN: %clang -target powerpc64-ibm-aix-xcoff -fno-register-global-dtors-with-atexit -fregister-global-dtors-with-atexit -c -### %s 2>&1 | \57// RUN: FileCheck --check-prefix=WITHATEXIT %s58// RUN: %clang -target powerpc64-ibm-aix-xcoff -c -### %s 2>&1 | \59// RUN: FileCheck --check-prefix=WITHOUTATEXIT %s60 61// WITHATEXIT: -fregister-global-dtors-with-atexit62// WITHOUTATEXIT-NOT: -fregister-global-dtors-with-atexit63