summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/array-struct.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-07 03:30:10 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-07 03:30:10 +0000
commitfceb64bd044fec0bc4ec19cd47098993ca34e4db (patch)
tree0b1e18f92b8d6a08a73ef545a1b9ed30fc2c5dc3 /clang/test/Analysis/array-struct.c
parent50dddc8b0766f2a87e0647398a988b49f7ff7d25 (diff)
downloadbcm5719-llvm-fceb64bd044fec0bc4ec19cd47098993ca34e4db.tar.gz
bcm5719-llvm-fceb64bd044fec0bc4ec19cd47098993ca34e4db.zip
Implement -Wconversion. Off by default, in the non-gcc group. There's
significant work left to be done to reduce the false-positive rate here. llvm-svn: 86326
Diffstat (limited to 'clang/test/Analysis/array-struct.c')
-rw-r--r--clang/test/Analysis/array-struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/array-struct.c b/clang/test/Analysis/array-struct.c
index d6b6076a14b..3137967be06 100644
--- a/clang/test/Analysis/array-struct.c
+++ b/clang/test/Analysis/array-struct.c
@@ -120,7 +120,7 @@ struct s1 {
// building: a->e, e->d. Only then 'a' could be added to live region roots.
void f13(double timeout) {
struct s1 a;
- a.e.d = (long) timeout;
+ a.e.d = (int) timeout;
if (a.e.d == 10)
a.e.d = 4;
}
OpenPOWER on IntegriCloud