2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / Wframe-address-in-Wall.C
blob2d945e564053ef606f39952d8c6346f29e8a3f93
1 // { dg-do compile }
2 // { dg-options "-Wall" }
4 // Verify that -Wframe-address is included in -Wall.
6 void* test_builtin_address (unsigned i)
8   void* const ba[] = {
9     __builtin_frame_address (4), // { dg-warning "builtin_frame_address" }
10     __builtin_return_address (4) // { dg-warning "builtin_return_address" }
11   };
13   return ba [i];