diff options
Diffstat (limited to 'test/Analysis/objc-encode.m')
| -rw-r--r-- | test/Analysis/objc-encode.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Analysis/objc-encode.m b/test/Analysis/objc-encode.m new file mode 100644 index 000000000000..b2379e96d9db --- /dev/null +++ b/test/Analysis/objc-encode.m @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -analyze -analyzer-checker=debug.ExprInspection -verify %s +// expected-no-diagnostics + +void clang_analyzer_eval(int); + +// rdar://problem/34831581: Used to crash. +void foo(void) { + char buf1[] = @encode(int **); +} |
