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

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
131
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
1 // PR c++/84596
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
2 // { dg-do compile { target c++11 } }
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
3
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
4 template<int x>
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
5 void b(int c) {
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
6 static_assert (c, "c"); // { dg-error "non-constant|not a constant" }
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
7 }