summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-expr-6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/instantiate-expr-6.cpp')
-rw-r--r--test/SemaTemplate/instantiate-expr-6.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-expr-6.cpp b/test/SemaTemplate/instantiate-expr-6.cpp
new file mode 100644
index 0000000..e6f7fe3
--- /dev/null
+++ b/test/SemaTemplate/instantiate-expr-6.cpp
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -std=c++11 -emit-llvm-only %s
+
+struct X {
+ template<typename T> static typename T::type g(T t);
+ template<typename T> auto f(T t) -> decltype(g(t));
+ void f(...);
+};
+
+void test() {
+ X().f(0);
+ X().f(0);
+}
OpenPOWER on IntegriCloud