From 1cbe80408d1e24126b4eb1ee19466fd23f9ec255 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 15 Sep 2015 02:36:41 +0000 Subject: [MS ABI] Restore our warning for overwide bitfields using the MS ABI This restores a diagnostic lost in r247651. llvm-svn: 247659 --- clang/test/SemaCXX/ms_wide_bitfield.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/SemaCXX/ms_wide_bitfield.cpp') diff --git a/clang/test/SemaCXX/ms_wide_bitfield.cpp b/clang/test/SemaCXX/ms_wide_bitfield.cpp index 022d604ec11..3e6a16579c8 100644 --- a/clang/test/SemaCXX/ms_wide_bitfield.cpp +++ b/clang/test/SemaCXX/ms_wide_bitfield.cpp @@ -4,7 +4,7 @@ struct A { char a : 9; // expected-error{{width of bit-field 'a' (9 bits) exceeds width of its type (8 bits)}} int b : 33; // expected-error{{width of bit-field 'b' (33 bits) exceeds width of its type (32 bits)}} bool c : 9; // expected-error{{width of bit-field 'c' (9 bits) exceeds width of its type (8 bits)}} - bool d : 3; + bool d : 3; // expected-warning{{width of bit-field 'd' (3 bits) exceeds the width of its type; value will be truncated to 1 bit}} }; int a[sizeof(A) == 1 ? 1 : -1]; -- cgit v1.2.3