p1.cpp revision 8e8fb3be5bd78f0564444eca02b404566a5f3b5d
1// RUN: %clang_cc1 -std=c++11 %s -verify
2// expected-no-diagnostics
3
4namespace PR13003 {
5  struct void_type
6  {
7    template <typename Arg0, typename... Args>
8    void_type(Arg0&&, Args&&...) { }
9  };
10
11  struct void_type2
12  {
13    template <typename... Args>
14    void_type2(Args&&...) { }
15  };
16
17  struct atom { };
18
19  void_type v1 = atom();
20  void_type2 v2 = atom();
21}
22
23