Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-36-1.C
blob131af368a21dce18d0192ed3bc6822948d0a10c1
1 // { dg-do compile { target c++11 } }
3 struct S;
5 typedef int (*F [[gnu::warn_unused_result]]) (int);
7 typedef int (*F2 [[gnu::warn_unused_result]]) (int);
9 typedef int (S::*F3 [[gnu::warn_unused_result]]) (int);
11 typedef int [[gnu::warn_unused_result]] (*F5) (int); // { dg-warning "ignored" }