Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / SemaCXX / dependent-noexcept-uninstantiated.cpp
blob3821f18e7bf2761a7314cbdc7d4b6d63ca88e74c
1 // RUN: %clang_cc1 -fsyntax-only -std=c++17 %s
2 // expected-no-diagnostics
4 using A = int;
5 using B = char;
7 template <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;}
12 void (C<int>::*tmp0)() noexcept = &C<A>::f0<B>;
13 int (C<int>::*tmp1)(int) noexcept = &C<A>::f1;