diff options
Diffstat (limited to 'test/FixIt/format.m')
-rw-r--r-- | test/FixIt/format.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/FixIt/format.m b/test/FixIt/format.m index f8ca0e124d..919212b306 100644 --- a/test/FixIt/format.m +++ b/test/FixIt/format.m @@ -223,4 +223,8 @@ void testSignedness(long i, unsigned long u) { // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:11-[[@LINE-4]]:13}:"%lu" // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:11-[[@LINE-4]]:13}:"%lu" // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:11-[[@LINE-4]]:13}:"%ld" + + printf("%+d", u); // expected-warning{{format specifies type 'int' but the argument has type 'unsigned long'}} + + // CHECK: fix-it:"{{.*}}":{[[@LINE-2]]:11-[[@LINE-2]]:14}:"%+ld" } |