Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -Wc++11-narrowing -Wmicrosoft -verify -fms-extensions -std=c++11
      2 
      3 
      4 struct A {
      5      unsigned int a;
      6 };
      7 int b = 3;
      8 A var = {  b }; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
      9 
     10 
     11