23 lines · cpp
1// RUN: %clang_cc1 -std=c++11 %s -verify 2// expected-no-diagnostics3 4namespace PR13003 {5 struct void_type6 {7 template <typename Arg0, typename... Args>8 void_type(Arg0&&, Args&&...) { }9 };10 11 struct void_type212 {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