aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-expr-5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/instantiate-expr-5.cpp')
-rw-r--r--test/SemaTemplate/instantiate-expr-5.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-expr-5.cpp b/test/SemaTemplate/instantiate-expr-5.cpp
new file mode 100644
index 000000000000..b42c0fb2aaf8
--- /dev/null
+++ b/test/SemaTemplate/instantiate-expr-5.cpp
@@ -0,0 +1,4 @@
+// RUN: clang-cc -fsyntax-only %s
+
+template <class A> int x(A x) { return x++; }
+int y() { return x<int>(1); }