xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/cxx-ambig-decl-expr-xfail.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s
2f4a2713aSLionel Sambuc // XFAIL: *
3*0a6a1f1dSLionel Sambuc // FIXME: This is PR7655
4*0a6a1f1dSLionel Sambuc 
5f4a2713aSLionel Sambuc struct X {
6f4a2713aSLionel Sambuc   template<typename T> X(T);
7f4a2713aSLionel Sambuc   X(int, int);
8f4a2713aSLionel Sambuc 
9f4a2713aSLionel Sambuc   X operator()(int, int) const;
10f4a2713aSLionel Sambuc };
11f4a2713aSLionel Sambuc 
12f4a2713aSLionel Sambuc template<typename T, typename U> struct Y { };
13f4a2713aSLionel Sambuc 
14f4a2713aSLionel Sambuc X *x;
f()15f4a2713aSLionel Sambuc void f() {
16f4a2713aSLionel Sambuc   int y = 0;
17f4a2713aSLionel Sambuc   X (*x)(int(y), int(y)) = Y<int, float>(), ++y;
18f4a2713aSLionel Sambuc }
19