diff options
Diffstat (limited to 'test/Analysis/casts.c')
| -rw-r--r-- | test/Analysis/casts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/casts.c b/test/Analysis/casts.c index eccb67812a02..86fb7da58ec2 100644 --- a/test/Analysis/casts.c +++ b/test/Analysis/casts.c @@ -175,3 +175,10 @@ void testCastVoidPtrToIntPtrThroughUIntTypedAssignment() { void testLocNonLocSymbolAssume(int a, int *b) { if ((int)b < a) {} // no-crash } + +void testLocNonLocSymbolRemainder(int a, int *b) { + int c = ((int)b) % a; + if (a == 1) { + c += 1; + } +} |
