summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/cxx-exprs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/cxx-exprs.cpp')
-rw-r--r--clang/test/PCH/cxx-exprs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/PCH/cxx-exprs.cpp b/clang/test/PCH/cxx-exprs.cpp
index b7707e0b934..e02bb0aa056 100644
--- a/clang/test/PCH/cxx-exprs.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud