[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / PR19955.cpp
blob5175b74aae7f22674c5408cd7eec054c752c9e8d
1 // RUN: %clang_cc1 -triple i686-windows-msvc -fms-extensions -fno-rtti -emit-llvm -std=c++1y -O0 -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -fno-rtti -emit-llvm -std=c++1y -O0 -o - %s | FileCheck %s --check-prefix X64
4 extern int __declspec(dllimport) var;
5 extern void __declspec(dllimport) fun();
7 extern int *varp;
8 int *varp = &var;
9 // CHECK-DAG: @"?varp@@3PAHA" = dso_local global i32* null
10 // X64-DAG: @"?varp@@3PEAHEA" = dso_local global i32* null
12 extern void (*funp)();
13 void (*funp)() = &fun;
14 // CHECK-DAG: @"?funp@@3P6AXXZA" = dso_local global void ()* null
15 // X64-DAG: @"?funp@@3P6AXXZEA" = dso_local global void ()* null
17 // CHECK-LABEL: @"??__Evarp@@YAXXZ"
18 // CHECK-DAG: store i32* @"?var@@3HA", i32** @"?varp@@3PAHA"
20 // X64-LABEL: @"??__Evarp@@YAXXZ"
21 // X64-DAG: store i32* @"?var@@3HA", i32** @"?varp@@3PEAHEA"
23 // CHECK-LABEL: @"??__Efunp@@YAXXZ"()
24 // CHECK-DAG: store void ()* @"?fun@@YAXXZ", void ()** @"?funp@@3P6AXXZA"
26 // X64-LABEL: @"??__Efunp@@YAXXZ"()
27 // X64-DAG: store void ()* @"?fun@@YAXXZ", void ()** @"?funp@@3P6AXXZEA"