Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaTemplate / nested-deduction-guides.cpp
blob38410b93ead3b97ea5a82f337511d294ff5ce067
1 // RUN: %clang_cc1 -std=c++17 -verify %s
2 // expected-no-diagnostics
4 template<typename T> struct A {
5 template<typename U> struct B {
6 B(...);
7 B(const B &) = default;
8 };
9 template<typename U> B(U) -> B<U>;
11 A<void>::B b = 123;
12 A<void>::B copy = b;
14 using T = decltype(b);
15 using T = A<void>::B<int>;
17 using Copy = decltype(copy);
18 using Copy = A<void>::B<int>;