PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / mvp2.C
blob6e1ffb5db12e1b9c23649ff054555b03a42cefb7
1 // PR c++/83592
2 // { dg-do compile }
3 // { dg-options "-Wparentheses" }
5 // Test that -Wparentheses does not give bogus warnings in
6 // typename context.
8 int *
9 foo (long &a)
11   return reinterpret_cast<int (*)> (&a);
14 int *
15 bar (long &a)
17   return (int (*)) &a;
20 int *
21 baz (int &a)
23   return static_cast<int (*const)> (&a);