diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-05-23 23:29:33 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-05-23 23:29:33 +0000 |
| commit | 10a7bd634117e66420d457b601a7357a10a1ed97 (patch) | |
| tree | 14211e4649c028d56f5d48e9fdd96fb27f91368f /clang/test | |
| parent | 4188aadbb24e10a2afbd7ed9b09b8fbf16ac4d88 (diff) | |
| download | bcm5719-llvm-10a7bd634117e66420d457b601a7357a10a1ed97.tar.gz bcm5719-llvm-10a7bd634117e66420d457b601a7357a10a1ed97.zip | |
fix a nasty off-by-one error.
llvm-svn: 51519
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Rewriter/crash.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Rewriter/crash.m b/clang/test/Rewriter/crash.m new file mode 100644 index 00000000000..59f18f37c2c --- /dev/null +++ b/clang/test/Rewriter/crash.m @@ -0,0 +1,14 @@ +// RUN: clang -rewrite-objc -o - %s +// rdar://5950938 +@interface NSArray {} ++ (id)arrayWithObjects:(id)firstObj, ...; +@end + +@interface NSConstantString {} +@end + +int main() { + id foo = [NSArray arrayWithObjects:@"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", @"9", @"10", @"11", @"12", 0]; + return 0; +} + |

