[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / conversion-64-32.c
blob3de20cb0fda3aa626198f7279da9a32ea6724e02
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wshorten-64-to-32 -triple x86_64-apple-darwin %s
3 int test0(long v) {
4 return v; // expected-warning {{implicit conversion loses integer precision}}
8 // rdar://9546171
9 typedef int int4 __attribute__ ((vector_size(16)));
10 typedef long long long2 __attribute__((__vector_size__(16)));
12 int4 test1(long2 a) {
13 int4 v127 = a; // no warning.
14 return v127;
17 int test2(long v) {
18 return v / 2; // expected-warning {{implicit conversion loses integer precision: 'long' to 'int'}}