* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / noexcept-type5.C
blob6c1ebd1f13e6f24c1084d7071ed56e09a5dc975d
1 // Test for composite pointer type.
2 // { dg-options -std=c++17 }
4 typedef void (*P)();
5 typedef void (*NP)() noexcept;
7 void f();
8 void g() noexcept;
10 bool b;
12 template <class T, class U> struct Same;
13 template <class T> struct Same<T,T> { };
15 Same<decltype(b ? &f : &g),P> s;
17 int main()
19   P p = 0;
20   NP np = 0;
22   p == np;
23   p != np;
24   p < np;