* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / throw2.C
blob957c200f8af7c4ccefd75a446834690778498c03
1 // { dg-do assemble  }
3 // Submitted by Sebastian Ritterbusch <uabp@rz.uni-karlsruhe.de>
5 #define ANY int // a class with a public constructor
7 void athrow(const ANY & e)
8 #if __cplusplus <= 201402L
9 throw(ANY)                      // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
10 #endif
12    throw e; // { dg-bogus "" } discarding const
15 int main(void)
17    athrow(ANY());
18    return 0;