diff options
Diffstat (limited to 'test/Sema/compare.c')
-rw-r--r-- | test/Sema/compare.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/compare.c b/test/Sema/compare.c index cd973d4885c7..03aebb3a0462 100644 --- a/test/Sema/compare.c +++ b/test/Sema/compare.c @@ -327,3 +327,9 @@ void test10(void) { b = (si == (ui = sl)); // expected-warning {{comparison of integers of different signs: 'int' and 'unsigned int'}} b = (si == (ui = sl&15)); } + +// PR11572 +struct test11S { unsigned x : 30; }; +int test11(unsigned y, struct test11S *p) { + return y > (p->x >> 24); // no-warning +} |