PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / Wframe-address-in-Wall.c
blob70da9c80483a613e995a006f906826cde121556a
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" } */
13 return ba [i];