summaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx-ambig-decl-expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-ambig-decl-expr.cpp')
-rw-r--r--clang/test/Parser/cxx-ambig-decl-expr.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-ambig-decl-expr.cpp b/clang/test/Parser/cxx-ambig-decl-expr.cpp
new file mode 100644
index 0000000..b5ff728
--- /dev/null
+++ b/clang/test/Parser/cxx-ambig-decl-expr.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+struct X {
+ template<typename T, typename U>
+ static void f(int, int);
+};
+
+void f() {
+ void (*ptr)(int, int) = &X::f<int, int>;
+}