summaryrefslogtreecommitdiffstats
path: root/test/PCH/cxx-exprs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/cxx-exprs.cpp')
-rw-r--r--test/PCH/cxx-exprs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/PCH/cxx-exprs.cpp b/test/PCH/cxx-exprs.cpp
index b7707e0b93..e02bb0aa05 100644
--- a/test/PCH/cxx-exprs.cpp
+++ b/test/PCH/cxx-exprs.cpp
@@ -20,10 +20,16 @@ public:
}
};
+template<typename ...T> int *arr_new(T ...v) {
+ return new int[]{v...};
+}
+
#else
New<int> *clone_new(New<int> *n) {
return n->clone();
}
+int *use_arr_new = arr_new(1, 2, 3);
+
#endif