Add error-reporting tests for platforms that don't support segmented stacks.

Patch by Brian Anderson.

llvm-svn: 148042
This commit is contained in:
Rafael Espindola 2012-01-12 20:26:13 +00:00
parent 00e861ed57
commit 9a167eeaff
1 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,17 @@
; RUN: llc < %s -mtriple=i686-mingw32 -segmented-stacks -filetype=obj
; RUN: llc < %s -mtriple=x86_64-freebsd -segmented-stacks -filetype=obj
; RUN: not llc < %s -mtriple=x86_64-solaris -segmented-stacks 2> %t.log
; RUN: FileCheck %s -input-file=%t.log -check-prefix=X64-Solaris
; RUN: not llc < %s -mtriple=x86_64-mingw32 -segmented-stacks 2> %t.log
; RUN: FileCheck %s -input-file=%t.log -check-prefix=X64-MinGW
; RUN: not llc < %s -mtriple=i686-freebsd -segmented-stacks 2> %t.log
; RUN: FileCheck %s -input-file=%t.log -check-prefix=X32-FreeBSD
; X64-Solaris: Segmented stacks not supported on this platform
; X64-MinGW: Segmented stacks not supported on this platform
; X32-FreeBSD: Segmented stacks not supported on FreeBSD i386
; Just to prevent the alloca from being optimized away
declare void @dummy_use(i32*, i32)