[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / microsoft-abi-unknown-arch.cpp
blob15ce523ada52f63f85f705f872e0284b946b7b7c
1 // RUN: %clang_cc1 -emit-llvm %s -o - -triple=ppc64-windows-msvc | FileCheck %s
3 // The purpose of this test is to see that we do something reasonable for
4 // architectures where we haven't checked what MSVC does.
6 struct A {
7 A() : a(42) {}
8 A(const A &o) : a(o.a) {}
9 ~A() {}
10 int a;
13 struct B {
14 A foo(A o);
17 A B::foo(A x) {
18 return x;
21 // CHECK-LABEL: define{{.*}} void @"?foo@B@@QEAA?AUA@@U2@@Z"(%struct.B* {{[^,]*}} %this, %struct.A* noalias sret(%struct.A) align 4 %agg.result, %struct.A* noundef %x)