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 | 23ab745e790249fa982791225834e317e24a9e42 (patch) | |
| tree | 143ec546e63d493a12b9238698daf70cc1d6aad4 /clang/test/Sema/bitfield.c | |
| parent | c6b53ca514dcd7bf7418c76a0eecbce423ccb30c (diff) | |
| download | bcm5719-llvm-23ab745e790249fa982791225834e317e24a9e42.tar.gz bcm5719-llvm-23ab745e790249fa982791225834e317e24a9e42.zip | |
Fix source locations in unnamed bitfield diagnostic, from Jakub
Wieczorek! Fixes PR8025.
llvm-svn: 118481
Diffstat (limited to 'clang/test/Sema/bitfield.c')
| -rw-r--r-- | clang/test/Sema/bitfield.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/bitfield.c b/clang/test/Sema/bitfield.c index 5bb194b1f3a..49c1c7d4436 100644 --- a/clang/test/Sema/bitfield.c +++ b/clang/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'}} +}; |

