Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/noexcept75.C

raw
1 // PR c++/94944
2 // { dg-do compile { target c++11 } }
3
4 template<class T>
5 struct A {
6 void f();
7 };
8
9 template<class T>
10 struct B : A<T> {
11 void g() noexcept(noexcept(A<T>::f()));
12 };
13
14 int main() {
15 B<int> b;
16 b.g();
17 }