aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/cxx_exprs.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/cxx_exprs.h')
-rw-r--r--test/PCH/cxx_exprs.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/PCH/cxx_exprs.h b/test/PCH/cxx_exprs.h
index 60ac263715..6cc83f4585 100644
--- a/test/PCH/cxx_exprs.h
+++ b/test/PCH/cxx_exprs.h
@@ -5,7 +5,7 @@
typedef __typeof__(static_cast<void *>(0)) static_cast_result;
// CXXDynamicCastExpr
-struct Base { virtual void f(int x = 492); };
+struct Base { virtual void f(int x = 492); ~Base(); };
struct Derived : Base { void g(); };
Base *base_ptr;
typedef __typeof__(dynamic_cast<Derived *>(base_ptr)) dynamic_cast_result;
@@ -44,6 +44,8 @@ namespace std {
typedef __typeof__(typeid(int))* typeid_result1;
typedef __typeof__(typeid(2))* typeid_result2;
+Derived foo();
+
void Derived::g() {
// CXXThisExpr
f(2); // Implicit
@@ -55,4 +57,9 @@ void Derived::g() {
// CXXDefaultArgExpr
f();
+
+ const Derived &X = foo();
+
+
+ // FIXME: CXXBindReferenceExpr ?
} \ No newline at end of file