diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-11-09 03:31:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-11-09 03:31:16 +0000 |
commit | 90ba6d5cf790c98231c93a63a5b1f7c6a95bd6b6 (patch) | |
tree | 5c444fb5e0d4a9d1e862209409300a6005bc7143 /test/Sema/bitfield.c | |
parent | 4b0104d8e35ebd6ccd32230477131653a8e4a17c (diff) |
Fix source locations in unnamed bitfield diagnostic, from Jakub
Wieczorek! Fixes PR8025.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/bitfield.c')
-rw-r--r-- | test/Sema/bitfield.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/bitfield.c b/test/Sema/bitfield.c index 5bb194b1f3..49c1c7d443 100644 --- a/test/Sema/bitfield.c +++ b/test/Sema/bitfield.c @@ -34,3 +34,7 @@ struct {unsigned x : 2;} x2; __typeof__((x.x+=1)+1) y; __typeof__(x.x<<1) y; int y; + +struct PR8025 { + double : 2; // expected-error{{anonymous bit-field has non-integral type 'double'}} +}; |