aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-03-27 01:17:09 +0000
committerBill Wendling <isanbard@gmail.com>2011-03-27 01:17:09 +0000
commit7b339e4abc0c1e3c56e6ecf0bfea5e71eebe81ac (patch)
tree106e7a39df4b77d8689172123fc35ad304298da3
parent2ff2fd82c13dba45b8ef1db872c64720eba2a593 (diff)
downloadllvm-llvmorg-2.9.0-rc3.zip
llvm-llvmorg-2.9.0-rc3.tar.gz
llvm-llvmorg-2.9.0-rc3.tar.bz2
Merge r128168 to unbreak test.llvmorg-2.9.0-rc3
llvm-svn: 128365
-rw-r--r--clang/test/SemaCXX/goto.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/goto.cpp b/clang/test/SemaCXX/goto.cpp
index c07e942..d8d5ec5 100644
--- a/clang/test/SemaCXX/goto.cpp
+++ b/clang/test/SemaCXX/goto.cpp
@@ -2,11 +2,17 @@
// PR9463
double *end;
-void f() {
+void f(bool b1, bool b2) {
{
- int end = 0;
- goto end;
- end = 1;
+ do {
+ int end = 0;
+ if (b2) {
+ do {
+ goto end;
+ } while (b2);
+ }
+ end = 1;
+ } while (b1);
}
end: