[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / windows-seh-async-verify.cpp
blobace93cf44a31d2b78717fcae90cfd92e9def4fdb
1 // RUN: %clang --target=x86_64-pc-windows -fasync-exceptions -fsyntax-only -### %s 2>&1 | FileCheck %s
2 // RUN: %clang_cl --target=x86_64-pc-windows /EHa -fsyntax-only -### -- %s 2>&1 | FileCheck %s
3 // RUN: %clang --target=x86_64-pc-windows-gnu -fasync-exceptions -fsyntax-only -### %s 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,GNU
4 // RUN: %clang_cl --target=x86_64-pc-windows-gnu /EHa -fsyntax-only -### -- %s 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,CL-GNU
6 // CHECK-NOT: warning
7 // GNU: warning: argument unused during compilation: '-fasync-exceptions' [-Wunused-command-line-argument]
8 // CL-GNU: warning: argument unused during compilation: '/EHa' [-Wunused-command-line-argument]
10 // CHECK: -fasync-exceptions
11 // GNU-ALL-NOT: -fasync-exceptions
12 struct S {
13 union _Un {
14 ~_Un() {}
15 char _Buf[12];
17 _Un _un;
20 struct Embed {
21 S v2;
24 void PR62449() { Embed v{}; }