r188996 - Typo.

David Majnemer david.majnemer at gmail.com
Thu Aug 22 03:04:41 PDT 2013


Author: majnemer
Date: Thu Aug 22 05:04:41 2013
New Revision: 188996

URL: http://llvm.org/viewvc/llvm-project?rev=188996&view=rev
Log:
Typo.

Modified:
    cfe/trunk/test/Sema/format-strings-ms.c

Modified: cfe/trunk/test/Sema/format-strings-ms.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-ms.c?rev=188996&r1=188995&r2=188996&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings-ms.c (original)
+++ cfe/trunk/test/Sema/format-strings-ms.c Thu Aug 22 05:04:41 2013
@@ -2,7 +2,7 @@
 
 int printf(const char *format, ...) __attribute__((format(printf, 1, 2)));
 
-void unsigned_test() {
+void signed_test() {
   short val = 30;
   printf("val = %I64d\n", val); // expected-warning{{'I64' length modifier is not supported by ISO C}} \
                                 // expected-warning{{format specifies type '__int64' (aka 'long long') but the argument has type 'short'}}
@@ -13,7 +13,7 @@ void unsigned_test() {
                                  // expected-warning{{format specifies type '__int32' (aka 'int') but the argument has type 'long long'}}
 }
 
-void signed_test() {
+void unsigned_test() {
   unsigned short val = 30;
   printf("val = %I64u\n", val); // expected-warning{{'I64' length modifier is not supported by ISO C}} \
                                 // expected-warning{{format specifies type 'unsigned __int64' (aka 'unsigned long long') but the argument has type 'unsigned short'}}





More information about the cfe-commits mailing list