llvm-project/clang/test/SemaCXX/dependent-noexcept-uninstantiated.cpp

12 lines
282 B
C++

// RUN: %clang_cc1 -fsyntax-only -std=c++17 %s
// expected-no-diagnostics
using A = int;
using B = char;
template <class T> struct C {
template <class V> void f0() noexcept(sizeof(T) == sizeof(A) && sizeof(V) == sizeof(B)) {}
};
void (C<int>::*tmp1)() noexcept = &C<A>::f0<B>;