diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-03-27 01:17:09 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-03-27 01:17:09 +0000 |
commit | 7b339e4abc0c1e3c56e6ecf0bfea5e71eebe81ac (patch) | |
tree | 106e7a39df4b77d8689172123fc35ad304298da3 | |
parent | 2ff2fd82c13dba45b8ef1db872c64720eba2a593 (diff) | |
download | llvm-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.cpp | 14 |
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: |