diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-01-14 19:38:41 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-01-14 19:38:41 +0000 |
commit | b9ad45ab6031f7de449a320d3838aa8881a60662 (patch) | |
tree | 956695d7e48e283af760f11734e9848d64126044 /clang/test/Analysis/casts.c | |
parent | 98757030a4301946cff17c130988b2f6e3e2eb35 (diff) | |
download | bcm5719-llvm-b9ad45ab6031f7de449a320d3838aa8881a60662.tar.gz bcm5719-llvm-b9ad45ab6031f7de449a320d3838aa8881a60662.zip |
Associate test case with Bugzilla PR.
llvm-svn: 93440
Diffstat (limited to 'clang/test/Analysis/casts.c')
-rw-r--r-- | clang/test/Analysis/casts.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/clang/test/Analysis/casts.c b/clang/test/Analysis/casts.c index e106f348329..3337b4d18fc 100644 --- a/clang/test/Analysis/casts.c +++ b/clang/test/Analysis/casts.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=region -verify %s +// RUN: %clang_cc1 -triple i386-apple-darwin9 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=region -verify %s // Test if the 'storage' region gets properly initialized after it is cast to // 'struct sockaddr *'. @@ -58,13 +59,13 @@ void doit(char *data, int len) { } } -struct pcm_feeder { +// PR 6035 - Test that a cast of a pointer to long and then to int does not crash SValuator. +struct pr6035 { void *data; }; -// Test cast a pointer to long and then to int does not crash SValuator. -void feed_swaplr (struct pcm_feeder *f) -{ - int bps; - bps = (long) f->data; - (void) bps; + +void pr6035_test (struct pr6035 *f) { + int x; + x = (long) f->data; + (void) x; } |