// RUN: %clang_cc1 -Wno-objc-root-class -fsyntax-only -verify %s
@interfaceFoo@end@implementationFoo- (int)add:(int)awith:(int)b{return a + b;}- (void)testIntegerOverflows{// expected-warning@+1 {{overflow in expression; result is 536870912 with type 'int'}}
(void)[selfadd:0with:4608*1024*1024];// expected-warning@+1 {{overflow in expression; result is 536870912 with type 'int'}}
(void)[selfadd:0with:[selfadd:4608*1024*1024with:0]];}@end