Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / deprecated-20.C
blob1911aeff4e374c5a723a601ec878cb1ba837fb19
1 // PR c++/116678
2 // { dg-do compile }
3 // { dg-options "-Os -pedantic" }
5 struct S
7   [[deprecated]] S () { s = 1; }        // { dg-bogus "'S::S\\\(\\\)' is deprecated" }
8   S (int x) { s = x; }                  // { dg-warning "C\\\+\\\+11 attributes only available with" "" { target c++98_only } .-1 }
9   ~S () {}
10   int s;
13 int
14 main ()