llvm-capstone/clang/test/FixIt/auto-fixit.m
Fariborz Jahanian bb6db56028 Provide Fixit warning when 'auto' is intended as storage
specifier in legacy code. Patch is reviewed offline by Doug.
// rdar://9036633.

llvm-svn: 126261
2011-02-22 23:17:49 +00:00

12 lines
175 B
Objective-C

/* RUN: cp %s %t
RUN: %clang_cc1 -x objective-c -fixit %t
RUN: %clang_cc1 -x objective-c -Werror %t
*/
// rdar://9036633
int main() {
auto int i = 0;
return i;
}