diff options
Diffstat (limited to 'clang/test/CXX/expr/expr.unary/expr.unary.noexcept')
| -rw-r--r-- | clang/test/CXX/expr/expr.unary/expr.unary.noexcept/cg.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/cg.cpp b/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/cg.cpp index c567eff8c30..aa2d553542d 100644 --- a/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/cg.cpp +++ b/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/cg.cpp @@ -2,14 +2,25 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-pch -o %t-ser.pch -std=c++0x -x c++ %S/ser.h // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -emit-llvm -std=c++0x -include-pch %t-ser.pch %s -o - | FileCheck %s +struct D { + ~D() throw(); +}; +struct E { + ~E() throw(); +}; + void test() { bool b; // CHECK: store i8 1, i8* %b, align 1 b = noexcept(0); // CHECK: store i8 0, i8* %b, align 1 b = noexcept(throw 0); - // CHECK: ret i1 true b = f1(); - // CHECK: ret i1 false b = f2(); + + // CHECK-NOT: call void @_ZN1ED1Ev + // CHECK: call void @_ZN1DD1Ev + D(), noexcept(E()); } +// CHECK: ret i1 true +// CHECK: ret i1 false |

