summaryrefslogtreecommitdiff
path: root/clang/test/Parser/altivec-template-vector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/altivec-template-vector.cpp')
-rw-r--r--clang/test/Parser/altivec-template-vector.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Parser/altivec-template-vector.cpp b/clang/test/Parser/altivec-template-vector.cpp
new file mode 100644
index 000000000000..3b349e778e1f
--- /dev/null
+++ b/clang/test/Parser/altivec-template-vector.cpp
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fsyntax-only -target-feature +altivec %s
+
+template <typename T> class vector {
+public:
+ vector(int) {}
+};
+
+void f() {
+ vector int v = {0};
+ vector<int> vi = {0};
+}