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