summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/microsoft-cxx0x.cpp
blob: 3b9bbefc0cd6b1df896bd1cb2e5499e2fe750bf1 (about) (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -Wc++11-narrowing -Wmicrosoft -verify -fms-extensions -std=c++11


struct A {
     unsigned int a;
};
int b = 3;
A var = {  b }; // expected-warning {{ cannot be narrowed }} expected-note {{override}}