clang/test/CXX/special/class.conv/class.conv.ctor/p1.cpp
raw| 1 | // RUN: %clang_cc1 -std=c++11 %s -verify |
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | namespace 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 |