diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-11-17 22:56:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-11-17 22:56:20 +0000 |
commit | e24f5fc8c763f1b5536b8d70dd510ca959db3a80 (patch) | |
tree | e704c4c84263ed70f563d70aa70c92aa672d08a0 /test/CodeGenCXX/const-base-cast.cpp | |
parent | c69c42e939e6bdaa56d162cc36da4f6b6c53e8db (diff) |
Constant expression evaluation: add support for evaluation of member pointers
and base-to-derived casts, and add proper handling of temporaries.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/const-base-cast.cpp')
-rw-r--r-- | test/CodeGenCXX/const-base-cast.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/CodeGenCXX/const-base-cast.cpp b/test/CodeGenCXX/const-base-cast.cpp index ed47069d24..320c790c5e 100644 --- a/test/CodeGenCXX/const-base-cast.cpp +++ b/test/CodeGenCXX/const-base-cast.cpp @@ -1,8 +1,7 @@ -// RUN: %clang_cc1 -O1 -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s // Check that the following construct, which is similar to one which occurs -// in Firefox, is not misfolded (folding it correctly would be a bonus, but -// that doesn't work at the moment, hence the -O1 in the runline). +// in Firefox, is folded correctly. struct A { char x; }; struct B { char y; }; struct C : A,B {}; |