-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SEH] Ignore async exception flag when the environment is not MSVC (#…
- Loading branch information
1 parent
a831c54
commit b0194d2
Showing
2 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// RUN: %clang --target=x86_64-pc-windows -fasync-exceptions -fsyntax-only %s -### 2>&1 | FileCheck %s | ||
// RUN: %clang_cl --target=x86_64-pc-windows /EHa -fsyntax-only %s -### 2>&1 | FileCheck %s | ||
// RUN: %clang --target=x86_64-pc-windows-gnu -fasync-exceptions -fsyntax-only %s -### 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,GNU | ||
// RUN: %clang_cl --target=x86_64-pc-windows-gnu /EHa -fsyntax-only %s -### 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,CL-GNU | ||
|
||
// CHECK-NOT: warning | ||
// GNU: warning: argument unused during compilation: '-fasync-exceptions' [-Wunused-command-line-argument] | ||
// CL-GNU: warning: argument unused during compilation: '/EHa' [-Wunused-command-line-argument] | ||
|
||
// CHECK: -fasync-exceptions | ||
// GNU-ALL-NOT: -fasync-exceptions | ||
struct S { | ||
union _Un { | ||
~_Un() {} | ||
char _Buf[12]; | ||
}; | ||
_Un _un; | ||
}; | ||
|
||
struct Embed { | ||
S v2; | ||
}; | ||
|
||
void PR62449() { Embed v{}; } |