From cfa657795dedb36524cd8ed8e27b3f9765df6cca Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 26 Feb 2014 23:15:41 +0000 Subject: [PATCH] [PECOFF] Add a test for /SAFESEH:NO. llvm-svn: 202314 --- lld/test/pecoff/seh.test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lld/test/pecoff/seh.test b/lld/test/pecoff/seh.test index beb68dfb8a2b..b184125b6768 100644 --- a/lld/test/pecoff/seh.test +++ b/lld/test/pecoff/seh.test @@ -23,3 +23,9 @@ CHECK: Security Cookie: 0 CHECK: SEH Table: 4210688 CHECK: SEH Count: 1 CHECK: SEH Table: 0x{{[0-9a-f]+}} + +# RUN: lld -flavor link /out:%t.exe /subsystem:console /force /nodefaultlib \ +# RUN: /safeseh:no -- %t.obj +# RUN: llvm-objdump -private-headers %t.exe | FileCheck -check-prefix=NOSEH %s + +NOSEH-NOT: SEH Table: