gcc/testsuite/g++.dg/warn/Wunused-19.C
raw| 1 | // PR c++/104702 |
| 2 | // { dg-additional-options "-fno-exceptions -Wunused-value" } |
| 3 | |
| 4 | struct FlyString { |
| 5 | FlyString(char const*); |
| 6 | ~FlyString(); |
| 7 | }; |
| 8 | |
| 9 | struct Array { FlyString __data[1]; }; |
| 10 | |
| 11 | void frobnicate(Array&); |
| 12 | |
| 13 | int main() { |
| 14 | Array s_reserved_words = { "" }; // { dg-bogus "value computed is not used" } |
| 15 | frobnicate(s_reserved_words); |
| 16 | } |