brintos

brintos / llvm-project-archived public Read only

0
0
Text · 907 B · ace93cf Raw
25 lines · cpp
1// RUN: %clang --target=x86_64-pc-windows -fasync-exceptions -fsyntax-only -### %s 2>&1 | FileCheck %s2// RUN: %clang_cl --target=x86_64-pc-windows /EHa -fsyntax-only -### -- %s 2>&1 | FileCheck %s3// RUN: %clang --target=x86_64-pc-windows-gnu -fasync-exceptions -fsyntax-only -### %s 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,GNU4// RUN: %clang_cl --target=x86_64-pc-windows-gnu /EHa -fsyntax-only -### -- %s 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,CL-GNU5 6// CHECK-NOT: warning7// 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]9 10// CHECK: -fasync-exceptions11// GNU-ALL-NOT: -fasync-exceptions12struct S {13    union _Un {14        ~_Un() {}15        char _Buf[12];16    };17    _Un _un;18};19 20struct Embed {21    S v2;22};23 24void PR62449() { Embed v{}; }25