annotate gcc/testsuite/g++.dg/cpp0x/noexcept59.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 2b5abeee2509
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
152
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 // PR c++/90748
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 // { dg-do compile { target c++11 } }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 template <class ...Ts> class A
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 void e ();
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 bool f (int() noexcept(this->e())); // { dg-error "this" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 bool g (int() noexcept(e())); // { dg-error "without object" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 };
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 A<> b;