diff options
Diffstat (limited to 'test/CodeGenCXX/stmtexpr.cpp')
-rw-r--r-- | test/CodeGenCXX/stmtexpr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/stmtexpr.cpp b/test/CodeGenCXX/stmtexpr.cpp index 1f0e4ac..5d4d6bc 100644 --- a/test/CodeGenCXX/stmtexpr.cpp +++ b/test/CodeGenCXX/stmtexpr.cpp @@ -73,3 +73,10 @@ int* foo5() { return (({ a; })); } +// <rdar://problem/14074868> +// Make sure this doesn't crash. +int foo5(bool b) { + int y = 0; + y = ({ A a(1); if (b) goto G; a.i; }); + G: return y; +} |