diff options
Diffstat (limited to 'clang/test/Analysis')
| -rw-r--r-- | clang/test/Analysis/misc-ps-region-store.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Analysis/misc-ps-region-store.m b/clang/test/Analysis/misc-ps-region-store.m index 4378e065365..ed285b422b4 100644 --- a/clang/test/Analysis/misc-ps-region-store.m +++ b/clang/test/Analysis/misc-ps-region-store.m @@ -1157,6 +1157,12 @@ pr8141 (void) { } } +// Don't crash when building the CFG. +void do_not_crash(int x) { + while (x - ({do {} while (0); x; })) { + } +} + // <rdar://problem/8424269> - Handle looking at the size of a VLA in // ArrayBoundChecker. Nothing intelligent (yet); just don't crash. typedef struct RDar8424269_A { |

