1 // RUN: cp %s %t 2 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -pedantic -Wall -fixit %t 3 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -pedantic -Wall -Werror %t 4 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -E -o - %t | FileCheck %s 5 6 /* This is a test of the various code modification hints that are 7 provided as part of warning or extension diagnostics. All of the 8 warnings will be fixed by -fixit, and the resulting file should 9 compile cleanly with -Werror -pedantic. */ 10 11 int printf(char const *, ...); 12 13 void test() { 14 typedef signed long int ssize_t; 15 printf("%f", (ssize_t) 42); 16 } 17 18 // CHECK: printf("%zd", (ssize_t) 42); 19