diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-09-10 21:57:27 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-09-10 21:57:27 +0000 |
commit | e56be2f72ca77d08627d994274daf4289075bf9e (patch) | |
tree | 298c7036922e30a28c1e12e6876c05869befcde4 /clang/test/CXX/expr/expr.unary/expr.unary.noexcept | |
parent | aee679bf35d82d7727f438927841af18af54ddf6 (diff) | |
download | bcm5719-llvm-e56be2f72ca77d08627d994274daf4289075bf9e.tar.gz bcm5719-llvm-e56be2f72ca77d08627d994274daf4289075bf9e.zip |
Eli helped me understand how evaluation contexts work.
llvm-svn: 113642
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 |