14 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -std=c++17 %s2// expected-no-diagnostics3 4using A = int;5using B = char;6 7template <class T> struct C {8 template <class V> void f0() noexcept(sizeof(T) == sizeof(A) && sizeof(V) == sizeof(B)) {}9 template <class V> auto f1(V a) noexcept(1) {return a;}10};11 12void (C<int>::*tmp0)() noexcept = &C<A>::f0<B>;13int (C<int>::*tmp1)(int) noexcept = &C<A>::f1;14