Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/noexcept22.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/60046 |
2 // { dg-require-effective-target c++11 } | |
3 | |
4 constexpr bool foo () { return noexcept (true); } | |
5 template <typename T> | |
6 struct V | |
7 { | |
8 void bar (V &) noexcept (foo ()) {} | |
9 }; | |
10 template <typename T> | |
11 struct W : public V <int> | |
12 { | |
13 void bar (W &x) { V <int>::bar (x); } | |
14 }; | |
15 | |
16 int | |
17 main () | |
18 { | |
19 W <int> a, b; | |
20 a.bar (b); | |
21 } |