diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:28:16 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:28:16 +0000 |
commit | 79ade4e028932fcb9dab15e2fb2305ca15ab0f14 (patch) | |
tree | e1a885aadfd80632f5bd70d4bd2d37e715e35a79 /test/Sema/conversion.c | |
parent | ecb7e5c8afe929ee38155db94de6b084ec32a645 (diff) | |
download | src-test2-79ade4e028932fcb9dab15e2fb2305ca15ab0f14.tar.gz src-test2-79ade4e028932fcb9dab15e2fb2305ca15ab0f14.zip |
Notes
Diffstat (limited to 'test/Sema/conversion.c')
-rw-r--r-- | test/Sema/conversion.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/conversion.c b/test/Sema/conversion.c index 8b93a4662821..addedd91f7e8 100644 --- a/test/Sema/conversion.c +++ b/test/Sema/conversion.c @@ -279,3 +279,11 @@ void test_7631400(void) { // This should show up despite the caret being inside a macro substitution char s = LONG_MAX; // expected-warning {{implicit cast loses integer precision: 'long' to 'char'}} } + +// <rdar://problem/7676608>: assertion for compound operators with non-integral RHS +void f7676608(int); +void test_7676608(void) { + float q = 0.7f; + char c = 5; + f7676608(c *= q); +} |